UserPermissionsHasPermission Method |
Returns true if the permission level exists for the current user
Namespace:
NetQuarry.Security.Package
Assembly:
EAP.Core (in EAP.Core.dll) Version: 2.0.0.0 (4.6.8.0)
Syntax public bool HasPermission(
string categoryName,
PermissionBits bitsToCheck
)
Public Function HasPermission (
categoryName As String,
bitsToCheck As PermissionBits
) As Boolean
Parameters
- categoryName
- Type: SystemString
The permission category name - bitsToCheck
- Type: NetQuarry.Security.PackagePermissionBits
Bits to check
Return Value
Type:
BooleanTrue if the user has the permission level bits set for the given category.
See Also