System.Web.Security.SqlRoleProvider.GetAllRoles Method

Gets a list of all the roles for the application.

Syntax

public override string[] GetAllRoles ()

Returns

A string array containing the names of all the roles stored in the database for a particular application.

Remarks

The SqlRoleProvider.GetAllRoles method is called by the System.Web.Security.Roles class to retrieve a list of all the roles 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