Gets the a VGIPermission object 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#
VGIPermission GetPermission(
	string permissionName
)
Visual Basic
Function GetPermission ( 
	permissionName As String
) As VGIPermission

Parameters

permissionName
Type: System..::..String
The name identifying the permission.

Return Value

Type: VGIPermission
A VGIPermission object with the specified id.

Remarks

This method does not look for permission in sub permission sets.

Examples

The following example gets the permission "Disable customer edition" contained in the folder "Customers" granted to the permission set "HR permissions".
C# Copy imageCopy
VGSecurityManager.Principal.GetPermissionSet("HR permissions").GetPermission("\Customers\Disable customer edition")

See Also