SimpleMembershipProvider.EnablePasswordReset Property

Gets a value that indicates whether the membership provider lets users reset their passwords.

Namespace:  WebMatrix.WebData
Assembly:  WebMatrix.WebData (in WebMatrix.WebData.dll)

Syntax

'Declaration
Public Overrides ReadOnly Property EnablePasswordReset As Boolean 
    Get
'Usage
Dim instance As SimpleMembershipProvider 
Dim value As Boolean 

value = instance.EnablePasswordReset
public override bool EnablePasswordReset { get; }
public:
virtual property bool EnablePasswordReset {
    bool get () override;
}
abstract EnablePasswordReset : bool 
override EnablePasswordReset : bool
override function get EnablePasswordReset () : boolean

Property Value

Type: System.Boolean
true if the membership provider supports password reset; otherwise, false. The default is true.

Remarks

The EnablePasswordReset property is set in the application configuration file (Web.config) using the enablePasswordReset attribute. The value of the property indicates whether you can call the ResetPassword(String, String) method to change the current password for a user account to a new, randomly generated password. This property is read-only.

See Also

Reference

SimpleMembershipProvider Class

WebMatrix.WebData Namespace