PolicyException Class
.NET Framework 3.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
Not applicable.
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 Server 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 Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.Community Additions
ADD
Show: