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: 3.2.912.1 (3.2.912.01)

Syntax

C#
public override void RemoveUsersFromRoles(
	string[] usernames,
	string[] roleNames
)
Visual Basic (Declaration)
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