Checks whether the specified permission is granted to the principal.

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

Syntax

C#
bool HasPermission(
	Guid id,
	bool includeVGPermissions
)
Visual Basic (Declaration)
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

true if the principal has the permission, false otherwise

See Also