Security. Change Password(String, String, String) Method
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 user.
public static bool ChangePassword (string userName, string currentPassword, string newPassword);
static member ChangePassword : string * string * string -> bool
Public Shared Function ChangePassword (userName As String, currentPassword As String, newPassword As String) As Boolean
The user name.
The current password for the user.
The new password.
true if the password is successfully changed; otherwise, false.
The Initialize(String, NameValueCollection) method was not called.-or-The InitializeDatabaseConnection method was not called.-or-The SimpleMembershipProvider membership provider is not registered in the configuration of your site. For more information, contact your site's system administrator.