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
Geri Bildirim
https://aka.ms/ContentUserFeedback.
Çok yakında: 2024 boyunca, içerik için geri bildirim mekanizması olarak GitHub Sorunları’nı kullanımdan kaldıracak ve yeni bir geri bildirim sistemiyle değiştireceğiz. Daha fazla bilgi için bkz.Gönderin ve geri bildirimi görüntüleyin