SimpleMembershipProvider.ChangePassword(String, String, String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.