System.Web.Security.MembershipUser.ProviderName Property

Gets the name of the membership provider that stores and retrieves user information for the membership user.

Syntax

public virtual string ProviderName { get; }

Value

Documentation for this section has not yet been entered.

Remarks

The MembershipUser.ProviderName property exposes the name of the membership provider that manages the information for the System.Web.Security.MembershipUser. You can access the specific membership provider instance for a membership user by using the Membership.Providers property of the System.Web.Security.Membership class, whether or not the provider is the default provider for the application. For example, you may create a method that takes a System.Web.Security.MembershipUser object as input and updates the System.Web.Security.MembershipUser based on your business logic. You can ensure that the appropriate membership provider is used to update the System.Web.Security.MembershipUser by calling the MembershipProvider.UpdateUser(MembershipUser) method of the membership provider from the Membership.Providers collection that is indexed by the MembershipUser.ProviderName property value.

Requirements

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