Share via


SimpleMembershipProvider.ChangePassword(String, String, String) Method

Definition

Changes the password for the specified membership account.

public override bool ChangePassword (string username, string oldPassword, string newPassword);
override this.ChangePassword : string * string * string -> bool
Public Overrides Function ChangePassword (username As String, oldPassword As String, newPassword As String) As Boolean

Parameters

username
String

The user name.

oldPassword
String

The old password.

newPassword
String

The new password.

Returns

true if the password is successfully changed; otherwise, false.

Applies to