2.1.5.2 ChangePasswordQuestionAndAnswer
This method updates the password question and answer for a user.
Declaration
// C# public override bool ChangePasswordQuestionAndAnswer(string userName, string password, string newPasswordQuestion, string newPasswordAnswer);
Parameters
- 
                        userNameThe user that the password question and answer change for. 
- 
                        passwordThe password for the specified user. 
- 
                        newPasswordQuestionThe new password question for the specified user. 
- 
                        newPasswordAnswerThe new password answer for the specified user. 
Return Value
Returns true, if the password question and answer were updated successfully; false, if otherwise.
                  
Exceptions
ArgumentException - One of the following conditions exists:
                  
- 
                        The userNameparameter is an empty string, contains a comma, or is longer than 256 characters.
- 
                        The passwordparameter is an empty string or is longer than 128 characters.
- 
                        The newPasswordQuestionparameter is an empty string or is longer than 256 characters.
- 
                        The newPasswordAnswerparameter is an empty string or is longer than 128 characters (including the encoded version).
Remarks
If the user name and password supplied are valid and the password question and answer were updated successfully, then this method returns true. Otherwise, it returns false.