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: 3.2.912.1 (3.2.912.01)

Syntax

C#
bool TryGetPermission(
	Guid id,
	out VGIPermission permission
)
Visual Basic (Declaration)
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

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