Initializes a new instance of the VGPrincipalPermission class for the specified role or permission.
Namespace:
Novalys.VisualGuard.SecurityAssembly: Novalys.VisualGuard.Security (in Novalys.VisualGuard.Security.dll) Version: 3.2.912.1 (3.2.912.01)
Syntax
| C# |
|---|
public VGPrincipalPermission( Guid repositoryId, VGPermissionType type ) |
| Visual Basic (Declaration) |
|---|
Public Sub New ( _ repositoryId As Guid, _ type As VGPermissionType _ ) |
Parameters
- repositoryId
- Type: System..::.Guid
The Visual Guard unique identifier of the role or the permission for which to check membership.
- type
- Type: Novalys.VisualGuard.Security..::.VGPermissionType
the type of the item to check (role or permission)
Remarks
When the current principal is null or not authenticated the permission will throw a security exception.