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)

virtual property bool EnablePasswordRetrieval {
	bool get () override;

Property Value

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

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.

  • Medium trust for the immediate caller. This member can be used by partially trusted code.