The PolicyException class represents the exception that is raised when policy forbids code from running. This is typically because the code requests more permissions than the policy will grant or the policy is configured to prohibit running the code.
Object
Exception
PolicyException
[Visual Basic] Public Class PolicyException Inherits Exception [C#] public class PolicyException : Exception [C++] public __gc class PolicyException : public Exception [JScript] public class PolicyException extends Exception
[To be supplied.]
Namespace: System.Security.Policy
Assembly: mscorlib.dll