SimpleMembershipProvider.EnablePasswordRetrieval Property
Gets a value that indicates whether the membership provider lets users retrieve their passwords.
Namespace: WebMatrix.WebData
Assembly: WebMatrix.WebData (in WebMatrix.WebData.dll)
Syntax
'Declaration
Public Overrides ReadOnly Property EnablePasswordRetrieval As Boolean
Get
'Usage
Dim instance As SimpleMembershipProvider
Dim value As Boolean
value = instance.EnablePasswordRetrieval
public override bool EnablePasswordRetrieval { get; }
public:
virtual property bool EnablePasswordRetrieval {
bool get () override;
}
abstract EnablePasswordRetrieval : bool
override EnablePasswordRetrieval : bool
override function get EnablePasswordRetrieval () : boolean
Property Value
Type: System.Boolean
true if the membership provider supports password retrieval; otherwise, false. The default is false.
Remarks
The EnablePasswordRetrieval property is set in the application configuration file (Web.config) using the enablePasswordRetrieval attribute. The value indicates whether users can use the GetPassword(String, String) method to retrieve their current password from the data source. This property is read-only.