.NET Framework Class Library
MembershipProvider Class

Note: This class is new in the .NET Framework version 2.0.

Defines the contract that ASP.NET implements to provide membership services using custom membership providers.

Namespace: System.Web.Security
Assembly: System.Web (in system.web.dll)

Syntax

Visual Basic (Declaration)
Public MustInherit Class MembershipProvider
    Inherits ProviderBase
Visual Basic (Usage)
Dim instance As MembershipProvider
C#
public abstract class MembershipProvider : ProviderBase
C++
public ref class MembershipProvider abstract : public ProviderBase
J#
public abstract class MembershipProvider extends ProviderBase
JScript
public abstract class MembershipProvider extends ProviderBase
Remarks

ASP.NET membership is designed to enable you to easily use a number of different membership providers for your ASP.NET applications. You can use the supplied membership providers that are included with the .NET Framework, or you can implement your own provider.

When implementing a custom membership provider, you are required to inherit the MembershipProvider abstract class.

There are two primary reasons for creating a custom membership provider.

  • You need to store membership information in a data source that is not supported by the membership providers included with the .NET Framework, such as a FoxPro database, an Oracle database, or other data source.

  • You need to manage membership 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 membership data that already exists in a SQL Server database for a company or Web site.

The MembershipProvider abstract class inherits from the ProviderBase abstract class. MembershipProvider implementations must also implement the required members of ProviderBase.

TopicLocation
How to: Implement a Custom Membership UserBuilding ASP .NET Web Applications
How to: Implement a Custom Membership UserBuilding ASP .NET Web Applications
How to: Implement a Custom Membership UserBuilding ASP .NET Web Applications in Visual Studio
How to: Implement a Custom Membership UserBuilding ASP .NET Web Applications in Visual Studio
How to: Sample Membership Provider ImplementationBuilding ASP .NET Web Applications
How to: Sample Membership Provider ImplementationBuilding ASP .NET Web Applications
How to: Sample Membership Provider ImplementationBuilding ASP .NET Web Applications in Visual Studio
How to: Sample Membership Provider ImplementationBuilding ASP .NET Web Applications in Visual Studio
Implementing a Membership ProviderBuilding ASP .NET Web Applications
Implementing a Membership ProviderBuilding ASP .NET Web Applications
Implementing a Membership ProviderBuilding ASP .NET Web Applications in Visual Studio
Implementing a Membership ProviderBuilding ASP .NET Web Applications in Visual Studio
.NET Framework Security

Inheritance Hierarchy

System.Object
   System.Configuration.Provider.ProviderBase
    System.Web.Security.MembershipProvider
       System.Web.Security.ActiveDirectoryMembershipProvider
       System.Web.Security.SqlMembershipProvider
Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Platforms

Windows 98, Windows 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

Version Information

.NET Framework

Supported in: 2.0
See Also

Tags :


Page view tracker