System.Web.Security.MembershipProviderCollection Class

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

See Also: MembershipProviderCollection Members


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


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


If you are not familiar with the membership features of ASP.NET, see Introduction to Membership before continuing. For a list of other topics related to membership, see Managing Users By Using Membership.


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