MembershipProvider.EnablePasswordReset Property

Definition

Indicates whether the membership provider is configured to allow users to reset their passwords.

C#
public abstract bool EnablePasswordReset { get; }

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

Product Versions
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

See also