PrivilegeProxy UpdateRolePrivilege Method CelloSaaS API Documentation
Update role privilege details

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

public static string UpdateRolePrivilege(
	RolePrivilege rolePrivilege
)

Return Value

Type: String
Role Privilege Identifier
Exceptions

ExceptionCondition
System UnauthorizedAccessExceptionIf the user has not the privilege
System ArgumentExceptionif role privilege id is null or empty.
[!:CelloSaaS.ServiceContracts.AccessControlManagement.PrivilegeException]if db exception occurs.
[!:ArgumentNullException]If role privilege is null
Examples

public void UpdateRolePrivilege()
{
    RolePrivilege rolePrivilege = new RolePrivilege(); 
    rolePrivilege.Id = "FE574591-F293-DF11-8DEB-001EC9DAB123";
    rolePrivilege.DataScopeId = "8FB38A1C-FCBD-4F99-9DED-6EA4CC0B97A4";
    string rolePrivilegeId = PrivilegeProxy.UpdateRolePrivilege(rolePrivilege);
}
See Also