System.Web.Security.Roles.CreateRole Method

Adds a new role to the data source.

Syntax

public static void CreateRole (string rolename)

Parameters

rolename
Documentation for this section has not yet been entered.

Remarks

The Roles.CreateRole(string) method adds a role name to the data source. Roles.CreateRole(string) calls the RoleProvider.CreateRole(string) method of the default role provider to add the specified role to the data source.

Note:

Role names cannot contain commas.

Requirements

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