Gets the a VGIPermission object with the specified name.
Namespace: Novalys.VisualGuard.SecurityAssembly: 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: VGIPermissionA 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 |
---|---|
VGSecurityManager.Principal.GetPermissionSet("HR permissions").GetPermission("\Customers\Disable customer edition") |