System.Web.Security.SqlRoleProvider.CreateRole Method

Adds a new role to the role database.

Syntax

public override void CreateRole (string rolename)

Parameters

rolename
Documentation for this section has not yet been entered.

Remarks

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

The maximum length for the role name is 256 characters. Role names are not case-sensitive. Commas are not allowed in role names.

Requirements

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