MembershipProvider.EnablePasswordReset 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.
Indicates whether the membership provider is configured to allow users to reset their passwords.
public:
abstract property bool EnablePasswordReset { bool get(); };
public abstract bool EnablePasswordReset { get; }
member this.EnablePasswordReset : bool
Public MustOverride ReadOnly Property EnablePasswordReset As Boolean
Property Value
true
if the membership provider supports password reset; otherwise, false
. The default is true
.
Examples
For an example of a MembershipProvider implementation, see Implementing a Profile Provider.
Remarks
EnablePasswordReset contains a Boolean value specified in the configuration file (Web.config) using the enablePasswordReset
attribute. The value indicates whether users can use the ResetPassword method to overwrite their current password with a new, randomly generated password. This property is read-only.
Applies to
See also
Feedback
https://aka.ms/ContentUserFeedback.
Kommer snart: I hele 2024 udfaser vi GitHub-problemer som feedbackmekanisme for indhold og erstatter det med et nyt feedbacksystem. Du kan få flere oplysninger under:Indsend og få vist feedback om