Visual Guard Class Library Documentation

VGMemberShipProvider.ChangePassword Method 

Changes the password of the user.

public override bool ChangePassword(
   String username,
   String oldPassword,
   String newPassword
);

Parameters

username
the user name to change the password for.
oldPassword
the old password of the given user.
newPassword
the new password of the given user.

Return Value

The status of the modification. Values are defined in VGPasswordModificationStatus value.

Exceptions

Exception Type Condition
ArgumentNullException

The name, old password, the new password or the password confirmation is null.

ArgumentException

The name, old password, new password or password confirmation is longer than 64 characters

The name is empty.

See Also

VGMemberShipProvider Class | Novalys.VisualGuard.Security.WebForm Namespace