SimpleMembershipProvider.ChangePasswordQuestionAndAnswer 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.
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
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for