Visual Guard Class Library Documentation

VGIPrincipal.TryGetPermission Method (String, VGIPermission&)

Retrieves the VGIPermission object granted to principal with the specified name.

bool TryGetPermission(
   String fullname,
   out VGIPermission& permission
);

Parameters

fullname
The full name of the permission, including the folder path.
permission
When this method returns, contains the permission whut the specified name, if the name correspond to a granted permission; otherwise, null.

Return Value

true if the permission corresponding to the specified name is granted to the principal. False if the permission is not granted or does not exist.

See Also

VGIPrincipal Interface | Novalys.VisualGuard.Security Namespace | VGIPrincipal.TryGetPermission Overload List