PolicyException
The exception that is thrown when policy forbids code to run.
using System.Runtime.CompilerServices;
using System.Runtime.Serialization;
namespace System.Security.Policy
{
[Serializable]
[TypeForwardedFrom("mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")]
public class PolicyException : SystemException
{
public PolicyException()
{
}
protected PolicyException(SerializationInfo info, StreamingContext context)
: base(info, context)
{
}
public PolicyException(string message)
: base(message)
{
}
public PolicyException(string message, Exception exception)
: base(message, exception)
{
}
}
}