SimpleMembershipProvider.GetPassword(String, String) Method
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.
Returns the password for the specified user account from the data source.
public override string GetPassword(string username, string answer);
override this.GetPassword : string * string -> string
Public Overrides Function GetPassword (username As String, answer As String) As String
Parameters
- username
- String
The user to retrieve the password for.
- answer
- String
The answer for the password security question.
Returns
The password for the specified user account.
Exceptions
EnablePasswordRetrieval is false.
answer does not match the security answer for the user account and RequiresQuestionAndAnswer is true.