SimpleMembershipProvider.GetPassword(String, String) Method

Definition

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

answer does not match the security answer for the user account and RequiresQuestionAndAnswer is true.

Applies to