Updates the repository with the information for the specified role.
Namespace:
Novalys.VisualGuard.Security.MembershipAssembly: Novalys.VisualGuard.Security (in Novalys.VisualGuard.Security.dll) Version: 3.2.912.1 (3.2.912.01)
Syntax
C# |
---|
public static void UpdateRole( VGRole role ) |
Visual Basic (Declaration) |
---|
Public Shared Sub UpdateRole ( _ role As VGRole _ ) |
Parameters
- role
- Type: Novalys.VisualGuard.Security.Membership..::.VGRole
A VGRole object that represents the role to be updated and the updated information for the role.
Exceptions
Exception | Condition |
---|---|
System..::.ArgumentNullException | role is null. |
System..::.ArgumentException | the VGRolesInstance object used to load the role is not the current instance. |
System..::.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. |
System..::.InvalidOperationException | the permission set granted to the role was not found in the repository. |
System.Security..::.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. |