Assembly: System.Web (in system.web.dll)
Public MustInherit Class RoleProvider Inherits ProviderBase
Dim instance As RoleProvider
public abstract class RoleProvider : ProviderBase
public ref class RoleProvider abstract : public ProviderBase
public abstract class RoleProvider extends ProviderBase
public abstract class RoleProvider extends ProviderBase
Not applicable.
ASP.NET role management is designed to enable you to easily use a number of different role providers for your ASP.NET applications. You can use the supplied role providers that are included with the .NET Framework, or you can implement your own provider.
When implementing a custom role provider, you are required to inherit the RoleProvider abstract class.
There are two primary reasons for creating a custom role provider.
-
You need to store role information in a data source that is not supported by the role providers included with the .NET Framework, such as a FoxPro database, an Oracle database, or other data sources.
-
You need to manage role information using a database schema that is different from the database schema used by the providers that ship with the .NET Framework. A common example of this would be role data that already exists in a SQL Server database for a company or Web site.
- AspNetHostingPermission To inherit from the RoleProvider class in a hosted environment. Demand value: LinkDemand. Permission value: Minimal.
System.Configuration.Provider.ProviderBase
System.Web.Security.RoleProvider
System.Web.Security.AuthorizationStoreRoleProvider
System.Web.Security.SqlRoleProvider
System.Web.Security.WindowsTokenRoleProvider
Windows 98, Windows Server 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1..NET Framework
Supported in: 3.0, 2.0Reference
RoleProvider MembersSystem.Web.Security Namespace