SimpleMembershipProvider.ChangePasswordQuestionAndAnswer Method

Definition

Changes the password question and answer for the specified account.

public override bool ChangePasswordQuestionAndAnswer (string username, string password, string newPasswordQuestion, string newPasswordAnswer);
override this.ChangePasswordQuestionAndAnswer : string * string * string * string -> bool
Public Overrides Function ChangePasswordQuestionAndAnswer (username As String, password As String, newPasswordQuestion As String, newPasswordAnswer As String) As Boolean

Parameters

username
String

The user name.

password
String

The new password.

newPasswordQuestion
String

The security question that the user must answer in order to change the password.

newPasswordAnswer
String

The answer to the security question.

Returns

true if the password question and answer are successfully changed; otherwise, false.

Applies to