Sets or removes specified privileges on the specified user role in one call.

Namespace: BlueCieloECM.InnoCielo.Meridian.Server
Assembly: BlueCieloECM.InnoCielo.Meridian (in BlueCieloECM.InnoCielo.Meridian.dll) Version: 1.4.0.0 (1.4.40.0)

Syntax

C#
public void SetUserRolePrivileges(
	string roleNameOrID,
	IEnumerable<string> privilegeNamesToDelete,
	IEnumerable<string> privilegeNamesToAdd,
	RolePrivilegesFlags flags
)
Visual Basic
Public Sub SetUserRolePrivileges ( _
	roleNameOrID As String, _
	privilegeNamesToDelete As IEnumerable(Of String), _
	privilegeNamesToAdd As IEnumerable(Of String), _
	flags As RolePrivilegesFlags _
)
Visual C++
public:
void SetUserRolePrivileges(
	String^ roleNameOrID, 
	IEnumerable<String^>^ privilegeNamesToDelete, 
	IEnumerable<String^>^ privilegeNamesToAdd, 
	RolePrivilegesFlags flags
)

Parameters

roleNameOrID
Type: System..::..String
The ID or Name property value of a user role.
privilegeNamesToDelete
Type: System.Collections.Generic..::..IEnumerable<(Of <(<'String>)>)>
The privileges to delete.
privilegeNamesToAdd
Type: System.Collections.Generic..::..IEnumerable<(Of <(<'String>)>)>
The privileges to add.
flags
Type: BlueCieloECM.InnoCielo.Meridian.Server..::..RolePrivilegesFlags
A bitmask that is a combination of bit flags from RolePrivilegesFlags.

See Also