System.Security.Policy.PolicyException Class

The exception that is thrown when policy forbids code to run.

See Also: PolicyException Members


public class PolicyException : SystemException


This exception is typically thrown when the code requests more permissions than the policy will grant or the policy is configured to prohibit running the code.

System.Security.Policy.PolicyException uses the HRESULT CORSEC_E_POLICY_EXCEPTION.

For a list of initial property values for an instance of System.Security.Policy.PolicyException, see the constructor.


Namespace: System.Security.Policy
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0,,