System.Security.Policy.PolicyException Class

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

See Also: PolicyException Members

Syntax

[System.Runtime.InteropServices.ComVisible(true)]
public class PolicyException : SystemException

Remarks

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.

Requirements

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