System.Web.Security.Roles.RemoveUserFromRole Method

Removes the specified user from the specified role.

Syntax

public static void RemoveUserFromRole (string username, string rolename)

Parameters

rolename
Documentation for this section has not yet been entered.
username
The user to remove from the specified role.

Remarks

The Roles.RemoveUserFromRole(string, string) method calls the default role provider to remove the specified user from the specified role at the data source.

Requirements

Namespace: System.Web.Security
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0