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

Parameters

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

Return Value

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".
CopyC#
VGSecurityManager.Principal.GetPermissionSet("HR permissions").GetPermission("\Customers\Disable customer edition")

See Also