public class VerificationException : SystemException
Object
Exception
SystemException
VerificationException
mscorlib
BCL
Represents the error that occurs when the security system requires code to be type-safe and the verification process is unable to verify that the code is type-safe.
[Note: The following CIL instructions throw VerificationException:
]
- ldloc
- ldloca.<length>
System.Security Namespace
VerificationException Constructors
VerificationException() Constructor
VerificationException(System.String) Constructor
VerificationException(System.String, System.Exception) Constructor
public VerificationException();
Constructs and initializes a new instance of the VerificationException class.
This constructor initializes the System.Security.VerificationException.Message property of the new instance to a system-supplied message that describes the error, such as "Could not verify the code." This message takes into account the current system culture.The System.Security.VerificationException.InnerException property is initialized to
null
.
System.Security.VerificationException Class, System.Security Namespace
public VerificationException(string message);
Constructs and initializes a new instance of the VerificationException .
- message
- A String that describes the error. The content of message is intended to be understood by humans. The caller of this constructor is required to ensure that this string has been localized for the current system culture.
This constructor initializes the System.Security.VerificationException.Message property of the new instance using message. If message isnull
, the System.Security.VerificationException.Message property is initialized to the system-supplied message provided by the constructor that takes no arguments.The System.Security.VerificationException.InnerException property is initialized to
null
.
System.Security.VerificationException Class, System.Security Namespace
public VerificationException(string message, Exception innerException);
Constructs and initializes a new instance of the VerificationException class.
- message
- A String that describes the error. The content of message is intended to be understood by humans. The caller of this constructor is required to ensure that this string has been localized for the current system culture.
- innerException
- An instance of Exception that is the cause of the current
Exception
. If innerException is non-null, then the currentException
was raised in a catch block handling innerException .
This constructor initializes the System.Security.VerificationException.Message property of the new instance using message and the System.Security.VerificationException.InnerException property using innerException. If message isnull
, the System.Security.VerificationException.Message property is initialized to the system-supplied message provided by the constructor that takes no arguments.[Note: For more information on inner exceptions, see System.Exception.InnerException.]
System.Security.VerificationException Class, System.Security Namespace