Visual Guard Class Library Documentation

VGRoles.UpdateRole Method 

Updates the repository with the information for the specified role.

public static void UpdateRole(
   VGRole role
);

Parameters

role
A VGRole object that represents the role to be updated and the updated information for the role.

Exceptions

Exception Type Condition
ArgumentNullException role is null.
ArgumentException the VGRolesInstance object used to load the role is not the current instance.
InvalidOperationException the permission set granted to the role was not found in the repository.

-or-

a role with the same name already exists for the application.
InvalidOperationException the permission set granted to the role was not found in the repository.
SecurityException The current user has not enough privileges to use Membership API. The Membership access level of the application must be sufficient to allows this action or the 'Membership Manager' role must be granted to the user by using the Visual Guard console.

See Also

VGRoles Class | Novalys.VisualGuard.Security.Membership Namespace