Click or drag to resize

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
)

Parameters

categoryName
Type: SystemString
The permission category name
bitsToCheck
Type: NetQuarry.Security.PackagePermissionBits
Bits to check

Return Value

Type: Boolean
True if the user has the permission level bits set for the given category.
See Also