Visual Guard Class Library Documentation

VGPrincipalPermission Constructor (Guid, VGPermissionType)

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

public VGPrincipalPermission(
   Guid repositoryId,
   VGPermissionType type
);

Parameters

repositoryId
The Visual Guard unique identifier of the role or the permission for which to check membership.
type
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

VGPrincipalPermission Class | Novalys.VisualGuard.Security Namespace | VGPrincipalPermission Constructor Overload List