Visual Guard Class Library Documentation

VGMembership.ChangePassword Method 

Updates the password for the membership user in the Visual Guard repository.

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

Parameters

username
The user to update the password for.
oldPassword
The current password for the membership user.
newPassword
The new password for the membership user.

Return Value

true if the update was successful; otherwise, false.

Exceptions

Exception Type Condition
ArgumentNullException username or oldPassword or newPasswordis null
ArgumentException oldPassword or newPassword is longer than 64 characters.

username is empty or is longer than 64 characters or contains invalid chars ('\', '/', '?', '*', '%', ';', ''', '"', ':', '|', '[', ']', '+', '=', ',').

See Also

VGMembership Class | Novalys.VisualGuard.Security.Membership Namespace