MembershipUser.ProviderName MembershipUser.ProviderName MembershipUser.ProviderName MembershipUser.ProviderName Property

Definition

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

public:
 virtual property System::String ^ ProviderName { System::String ^ get(); };
public virtual string ProviderName { get; }
member this.ProviderName : string
Public Overridable ReadOnly Property ProviderName As String

Property Value

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

Remarks

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

Applies to

See also