AppContextHasPolicy 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 public bool HasPolicy(
string policyName,
bool defaultWhenMissing
)
Public Function HasPolicy (
policyName As String,
defaultWhenMissing As Boolean
) As Boolean
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:
Booleantrue if the Policy has been granted, otherwise false.
Implements
IAppContextHasPolicy(String, Boolean)See Also