Share via


ResetPassword Method (String)

Resets a user's password to a new, automatically generated password.

Namespace:  Microsoft.CommerceServer.Runtime.Profiles
Assembly:  Microsoft.CommerceServer.Runtime (in Microsoft.CommerceServer.Runtime.dll)

Syntax

'Declaration
Public Overrides Function ResetPassword ( _
    passwordAnswer As String _
) As String
'Usage
Dim instance As UpmMembershipUser
Dim passwordAnswer As String
Dim returnValue As String

returnValue = instance.ResetPassword(passwordAnswer)
public override string ResetPassword(
    string passwordAnswer
)
public:
virtual String^ ResetPassword(
    String^ passwordAnswer
) override
public override function ResetPassword(
    passwordAnswer : String
) : String

Parameters

  • passwordAnswer
    Type: System..::.String
    The password answer for the membership user.

Return Value

Type: System..::.String
The new password for the membership user.

Exceptions

Exception Condition
ArgumentNullException

passwordAnswer is nullNothingnullptra null reference (Nothing in Visual Basic).

Remarks

Resets a user's password to a new, automatically generated password.

Permissions

See Also

Reference

UpmMembershipUser Class

UpmMembershipUser Members

ResetPassword Overload

Microsoft.CommerceServer.Runtime.Profiles Namespace