Visual Guard Class Library Documentation

VGRoleProvider.RemoveUsersFromRoles Method 

Removes the specified user names from the specified roles.

public override void RemoveUsersFromRoles(
   String[] usernames,
   String[] roleNames
);

Parameters

usernames
A string array of user names to remove from the specified roles.
roleNames
A string array of role names to remove the specified users from.

Exceptions

Exception Type Condition
ArgumentNullException One of the roles specified in roleNames is null.-or-One of the users specified in usernames is null.
ArgumentException One 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

VGRoleProvider Class | Novalys.VisualGuard.Security.WebForm Namespace