System.Web.Security.SqlRoleProvider.RoleExists Method

Gets a value indicating whether the specified role name already exists in the role database.

Syntax

public override 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 database; otherwise, false.

Remarks

The SqlRoleProvider.RoleExists(string) method is called by the System.Web.Security.Roles class to determine whether a role name exists in the SQL Server database specified in the ASP.NET application's configuration file (Web.config).

Requirements

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