Removes the specified user names from the specified roles.

Namespace: Novalys.VisualGuard.Security.WebForm
Assembly: Novalys.VisualGuard.Security.WebForm (in Novalys.VisualGuard.Security.WebForm.dll) Version: 2017.0.101.17 (2017.0.101.17)

Syntax

C#
public override void RemoveUsersFromRoles(
	string[] usernames,
	string[] roleNames
)
Visual Basic
Public Overrides Sub RemoveUsersFromRoles ( 
	usernames As String(),
	roleNames As String()
)

Parameters

usernames
Type: array<System..::..String>[]()[][]
A string array of user names to remove from the specified roles.
roleNames
Type: array<System..::..String>[]()[][]
A string array of role names to remove the specified users from.

Exceptions

ExceptionCondition
System..::..ArgumentNullExceptionOne of the roles specified in roleNames is null.-or-One of the users specified in usernames is null.
System..::..ArgumentExceptionOne of the roles specified in roleNames is an empty string.

-or-

One of the users specified in usernames is an empty string.

-or-

roleNames contains a duplicate element.

-or-

usernames contains a duplicate element.

See Also