Click or drag to resize

VGPrincipalPermission Constructor (Guid, VGPermissionType)

Initializes a new instance of the VGPrincipalPermission class for the specified role or permission.

Namespace:  Novalys.VisualGuard.Security
Assembly:  Novalys.VisualGuard.Security (in Novalys.VisualGuard.Security.dll) Version: 2019.1.831.19 (2019.1.0831.19)
Syntax
public VGPrincipalPermission(
	Guid repositoryId,
	VGPermissionType type
)

Parameters

repositoryId
Type: SystemGuid
The Visual Guard unique identifier of the role or the permission for which to check membership.
type
Type: Novalys.VisualGuard.SecurityVGPermissionType
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.
See Also