MembershipUser.ProviderName Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈