Jaa


ChangePasswordQuestionAndAnswer Method

Processes a request to update the password question and answer for a membership user.

Namespace:  Microsoft.CommerceServer.Runtime.Profiles
Assembly:  Microsoft.CommerceServer.Runtime (in Microsoft.CommerceServer.Runtime.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 UpmMembershipProvider
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
public override function ChangePasswordQuestionAndAnswer(
    username : String, 
    password : String, 
    newPasswordQuestion : String, 
    newPasswordAnswer : String
) : boolean

Parameters

  • username
    Type: System..::.String
    The name of the user to update the password question and answer for. Cannot be nullNothingnullptra null reference (Nothing in Visual Basic).
  • password
    Type: System..::.String
    The password for the specified user. Cannot be nullNothingnullptra null reference (Nothing in Visual Basic).
  • newPasswordQuestion
    Type: System..::.String
    The new password question for the specified user. Cannot be nullNothingnullptra null reference (Nothing in Visual Basic).
  • newPasswordAnswer
    Type: System..::.String
    The new password answer for the specified 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

username or 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

See Also

Reference

UpmMembershipProvider Class

UpmMembershipProvider Members

Microsoft.CommerceServer.Runtime.Profiles Namespace