System.Web.Security.RoleProviderCollection Class

A collection of objects that inherit the System.Web.Security.RoleProvider abstract class.

See Also: RoleProviderCollection Members


public sealed class RoleProviderCollection : System.Configuration.Provider.ProviderCollection


The role providers for an application are exposed as a read-only System.Web.Security.RoleProviderCollection by the Roles.Providers property of the System.Web.Security.Roles class. You can access a specific role provider in the collection by name and cast it as the specific provider type, such as System.Web.Security.SqlRoleProvider. This enables you to manage role information from multiple data stores in a single application as well as access custom members of a role provider that are not part of the System.Web.Security.RoleProvider abstract class.


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