PolicyException Class
.NET Framework 2.0
The exception that is thrown when policy forbids code to run.
Namespace: System.Security.Policy
Assembly: mscorlib (in mscorlib.dll)
Assembly: mscorlib (in mscorlib.dll)
'Declaration <SerializableAttribute> _ <ComVisibleAttribute(True)> _ Public Class PolicyException Inherits SystemException 'Usage Dim instance As PolicyException
/** @attribute SerializableAttribute() */ /** @attribute ComVisibleAttribute(true) */ public class PolicyException extends SystemException
SerializableAttribute ComVisibleAttribute(true) public class PolicyException extends 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.
PolicyException uses the HRESULT CORSEC_E_POLICY_EXCEPTION.
For a list of initial property values for an instance of PolicyException, see the constructor.
Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.
Community Additions
ADD
Show: