VGIPrincipalTryGetPermission Method (Guid, VGIPermission)
|
Retrieves the
VGIPermission object granted to principal with the specified id.
Namespace:
Novalys.VisualGuard.Security
Assembly:
Novalys.VisualGuard.Security (in Novalys.VisualGuard.Security.dll) Version: 2019.1.831.19 (2019.1.0831.19)
Syntax bool TryGetPermission(
Guid id,
out VGIPermission permission
)
Function TryGetPermission (
id As Guid,
<OutAttribute> ByRef permission As VGIPermission
) As Boolean
Parameters
- id
- Type: SystemGuid
The Visual Guard unique identifier of the permission to get. - permission
- Type: Novalys.VisualGuard.SecurityVGIPermission
When this method returns, contains the permission associated with the specified id, if the id corespond to a granted permission; otherwise, null.
Return Value
Type:
Booleantrue if the permission corresponding to the specified id is granted to the principal. Otherwise false if the permission is not granted or does not exist.
See Also