This documentation is archived and is not being maintained.

MembershipUser.ProviderName Property

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

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

public virtual string ProviderName { get; }
/** @property */
public String get_ProviderName ()

public function get ProviderName () : String

Not applicable.

Property Value

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

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.

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.0
Show: