MembershipProvider.ChangePassword Method
.NET Framework 2.0
Processes a request to update the password for a membership user.
Namespace: System.Web.Security
Assembly: System.Web (in system.web.dll)
Assembly: System.Web (in system.web.dll)
public abstract bool ChangePassword ( string username, string oldPassword, string newPassword )
public abstract boolean ChangePassword ( String username, String oldPassword, String newPassword )
public abstract function ChangePassword ( username : String, oldPassword : String, newPassword : String ) : boolean
Not applicable.
Parameters
- username
The user to update the password for.
- oldPassword
The current password for the specified user.
- newPassword
The new password for the specified user.
Return Value
true if the password was updated successfully; otherwise, false.For an example of a MembershipProvider implementation, see Implementing a Profile Provider.
Community Additions
ADD
Show: