Retrieves the VGIPermission object granted to principal with the specified id.

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 TryGetPermission(
	Guid id,
	out VGIPermission permission
)
Visual Basic
Function TryGetPermission ( 
	id As Guid,
	<OutAttribute> ByRef permission As VGIPermission
) As Boolean

Parameters

id
Type: System..::..Guid
The Visual Guard unique identifier of the permission to get.
permission
Type: Novalys.VisualGuard.Security..::..VGIPermission%
When this method returns, contains the permission associated with the specified id, if the id corespond to a granted permission; otherwise, null.

Return Value

Type: Boolean
true if the permission corresponding to the specified id is granted to the principal. Otherwise false if the permission is not granted or does not exist.

See Also