Checks whether the specified permission is granted to the principal.
Namespace: Novalys.VisualGuard.SecurityAssembly: Novalys.VisualGuard.Security (in Novalys.VisualGuard.Security.dll) Version: 2017.0.101.17 (2017.0.101.17)
Syntax
C# |
---|
bool HasPermission( Guid id, bool includeVGPermissions ) |
Visual Basic |
---|
Function HasPermission ( id As Guid, includeVGPermissions As Boolean ) As Boolean |
Parameters
- id
- Type: System..::..Guid
The Visual Guard unique identifier of the permission
- includeVGPermissions
- Type: System..::..Boolean
If you include a VGPermissions
Return Value
Type: Booleantrue if the principal has the permission, false otherwise