SimpleMembershipProvider.ChangePassword(String, String, String) SimpleMembershipProvider.ChangePassword(String, String, String) 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 String String

The user name.

oldPassword
String String String

The old password.

newPassword
String String String

The new password.

Returns

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

Applies to