Visual Guard Class Library Documentation

VGIPermissionSet.GetPermission Method (String)

Gets the a VGIPermission object with the specified name.

VGIPermission GetPermission(
   String permissionName
);

Parameters

permissionName
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.

Example

The following example gets the permission "Disable customer edition" contained in the folder "Customers" granted to the permission set "HR permissions".

VGSecurityManager.Principal.GetPermissionSet("HR permissions").GetPermission("\Customers\Disable customer edition")

See Also

VGIPermissionSet Interface | Novalys.VisualGuard.Security Namespace | VGIPermissionSet.GetPermission Overload List