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

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

Parameters

fullname
Type: System..::..String
The full name of the permission, including the folder path.
permission
Type: Novalys.VisualGuard.Security..::..VGIPermission%
When this method returns, contains the permission whut the specified name, if the name correspond to a granted permission; otherwise, null.

Return Value

Type: Boolean
true if the permission corresponding to the specified name is granted to the principal. False if the permission is not granted or does not exist.

See Also