Click or drag to resize

IAppContextHasPolicy Method (String, Boolean)

Returns true if the current user has been granted the policy.

Namespace:  NetQuarry
Assembly:  EAP.Core (in EAP.Core.dll) Version: 2.0.0.0 (4.6.8.0)
Syntax
bool HasPolicy(
	string policyName,
	bool defaultWhenMissing
)

Parameters

policyName
Type: SystemString
The name of the policy
defaultWhenMissing
Type: SystemBoolean
The default permission to use when the policy isn't defined.

Return Value

Type: Boolean
true if the Policy has been granted, otherwise false.
See Also