DefaultMembershipProvider.ChangePasswordQuestionAndAnswer Method
Changes the password question and answer.
Namespace: System.Web.Providers
Assembly: System.Web.Providers (in System.Web.Providers.dll)
Syntax
'Declaration
Public Overrides Function ChangePasswordQuestionAndAnswer ( _
username As String, _
password As String, _
newPasswordQuestion As String, _
newPasswordAnswer As String _
) As Boolean
'Usage
Dim instance As DefaultMembershipProvider
Dim username As String
Dim password As String
Dim newPasswordQuestion As String
Dim newPasswordAnswer As String
Dim returnValue As Boolean
returnValue = instance.ChangePasswordQuestionAndAnswer(username, _
password, newPasswordQuestion, newPasswordAnswer)
public override bool ChangePasswordQuestionAndAnswer(
string username,
string password,
string newPasswordQuestion,
string newPasswordAnswer
)
public:
virtual bool ChangePasswordQuestionAndAnswer(
String^ username,
String^ password,
String^ newPasswordQuestion,
String^ newPasswordAnswer
) override
abstract ChangePasswordQuestionAndAnswer :
username:string *
password:string *
newPasswordQuestion:string *
newPasswordAnswer:string -> bool
override ChangePasswordQuestionAndAnswer :
username:string *
password:string *
newPasswordQuestion:string *
newPasswordAnswer:string -> bool
public override function ChangePasswordQuestionAndAnswer(
username : String,
password : String,
newPasswordQuestion : String,
newPasswordAnswer : String
) : boolean
Parameters
- username
Type: System.String
The username.
- password
Type: System.String
The password.
- newPasswordQuestion
Type: System.String
The new password question.
- newPasswordAnswer
Type: System.String
The new password answer.
Return Value
Type: System.Boolean
true if the password for the question and answer has been changed; otherwise, false.
See Also
Reference
DefaultMembershipProvider Class
System.Web.Providers Namespace