SimpleMembershipProvider.ChangePasswordQuestionAndAnswer(String, String, String, String) SimpleMembershipProvider.ChangePasswordQuestionAndAnswer(String, String, String, String) SimpleMembershipProvider.ChangePasswordQuestionAndAnswer(String, String, String, String) 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 String String

The user name.

password
String String String

The new password.

newPasswordQuestion
String String String

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

newPasswordAnswer
String String String

The answer to the security question.

Returns

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

Applies to