Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Updates the password question and answer for the membership user in the membership data store.
Namespace: Microsoft.CommerceServer.Runtime.Profiles
Assembly: Microsoft.CommerceServer.Runtime (in Microsoft.CommerceServer.Runtime.dll)
Syntax
'Declaration
Public Overrides Function ChangePasswordQuestionAndAnswer ( _
password As String, _
newPasswordQuestion As String, _
newPasswordAnswer As String _
) As Boolean
'Usage
Dim instance As UpmMembershipUser
Dim password As String
Dim newPasswordQuestion As String
Dim newPasswordAnswer As String
Dim returnValue As Boolean
returnValue = instance.ChangePasswordQuestionAndAnswer(password, _
newPasswordQuestion, newPasswordAnswer)
public override bool ChangePasswordQuestionAndAnswer(
string password,
string newPasswordQuestion,
string newPasswordAnswer
)
public:
virtual bool ChangePasswordQuestionAndAnswer(
String^ password,
String^ newPasswordQuestion,
String^ newPasswordAnswer
) override
public override function ChangePasswordQuestionAndAnswer(
password : String,
newPasswordQuestion : String,
newPasswordAnswer : String
) : boolean
Parameters
- password
Type: System..::.String
The current password for the membership user. Cannot be nullNothingnullptra null reference (Nothing in Visual Basic).
- newPasswordQuestion
Type: System..::.String
The new password question value for the membership user. Cannot be nullNothingnullptra null reference (Nothing in Visual Basic).
- newPasswordAnswer
Type: System..::.String
The new password answer value for the membership user. Cannot be nullNothingnullptra null reference (Nothing in Visual Basic).
Return Value
Type: System..::.Boolean
true if the password question and answer are updated successfully; otherwise, false.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | password or newPasswordQuestion or newPasswordAnswer is nullNothingnullptra null reference (Nothing in Visual Basic). |
Remarks
Updates the password question and answer for a user in the UpmMembershipProvider store.
Permissions
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.