SimpleRoleProvider.RemoveUsersFromRoles(String[], String[]) Method

Definition

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.

Applies to