Checks whether the specified permission is granted to the principal.

Namespace: Novalys.VisualGuard.Security
Assembly: Novalys.VisualGuard.Security (in Novalys.VisualGuard.Security.dll) Version: 2016.0.105.16 (2016.0.105.16)

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: Boolean
true if the principal has the permission, false otherwise

See Also