System.Web.Security.RoleProvider.RoleExists Method

Gets a value indicating whether the specified role name already exists in the role data source for the configured applicationName.

Syntax

public abstract bool RoleExists (string rolename)

Parameters

rolename
Documentation for this section has not yet been entered.

Returns

true if the role name already exists in the data source for the configured applicationName; otherwise, false.

Remarks

RoleProvider.RoleExists(string) is called by the Roles.RoleExists(string) method of the System.Web.Security.Roles class to determine whether a role name exists in the data source for the configured Roles.ApplicationName.

If the specified role name is null or is an empty string, we recommend that your provider throw an exception.

Requirements

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