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

Syntax

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

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