RoleProxy SearchRolesInCurrentTenant Method CelloSaaS API Documentation
Search active role details in current tenant

Namespace: CelloSaaS.BusinessEdition.ServiceProxies.AccessControlManagement
Assembly: CelloSaaS.BusinessEdition (in CelloSaaS.BusinessEdition.dll) Version: 4.3.1.0 (4.3.1.0)
Syntax

public static List<Role> SearchRolesInCurrentTenant(
	string searchValue,
	string tenantCode
)

Parameters

searchValue
Type: System String
Search Role Name String
tenantCode
Type: System String
Tenant Code(Mandatory)

Return Value

Type: List Role 
Active Role details in current tenant
Exceptions

ExceptionCondition
[!:CelloSaaS.ServiceContracts.AccessControlManagement.RoleException]If db exception occurs
System ArgumentNullExceptionIf tenant id is null or empty
Examples

public void SearchRolesInCurrentTenant()
{
    string searchValue = "a";
    string tenantCode = "B590CD25-3093-DF11-8DEB-001EC9DAB123";
    List<Role> roles = RoleProxy.SearchRolesInCurrentTenant(searchValue, tenantCode);
}
See Also