AppContextHasPolicy Method (String) |
Note: This API is now obsolete.
Returns true if the current user
has not been explicitly denied the policy.
NOTE: This method is deprecated. Use HasPolicy(String, Boolean) instead for improved security.
Namespace:
NetQuarry
Assembly:
EAP.Core (in EAP.Core.dll) Version: 2.0.0.0 (4.6.8.0)
Syntax [ObsoleteAttribute("HasPolicy(policyName) is deprecated in favor of HasPolicy(policyName,default) because the deprecated method returns true if the policy is unknown which is counter-intuitive.")]
public bool HasPolicy(
string policyName
)
<ObsoleteAttribute("HasPolicy(policyName) is deprecated in favor of HasPolicy(policyName,default) because the deprecated method returns true if the policy is unknown which is counter-intuitive.")>
Public Function HasPolicy (
policyName As String
) As Boolean
Parameters
- policyName
- Type: SystemString
The name of the policy
Return Value
Type:
Booleantrue if the Policy has been granted, otherwise false.
Implements
IAppContextHasPolicy(String)See Also