SimpleRoleProvider.RemoveUsersFromRoles(String[], String[]) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Removes the specified user names from the specified roles.
public override void RemoveUsersFromRoles (string[] usernames, string[] roleNames);
override this.RemoveUsersFromRoles : string[] * string[] -> unit
Public Overrides Sub RemoveUsersFromRoles (usernames As String(), roleNames As String())
Parameters
- usernames
- String[]
The user names to remove from the specified roles.
- roleNames
- String[]
The role names to remove the specified user names from.
Exceptions
One or more of the specified roles do not exist.-or-One or more users are not in all of the specified roles.
The database operation failed.