System.Security.VerificationException Class

public class VerificationException : SystemException

Base Types

Object
  Exception
    SystemException
      VerificationException

Assembly

mscorlib

Library

BCL

Summary

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.

Description

[Note: The following CIL instructions throw VerificationException:

]

See Also

System.Security Namespace

Members

VerificationException Constructors

VerificationException() Constructor
VerificationException(System.String) Constructor
VerificationException(System.String, System.Exception) Constructor


VerificationException() Constructor

public VerificationException();

Summary

Constructs and initializes a new instance of the VerificationException class.

Description

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 .

See Also

System.Security.VerificationException Class, System.Security Namespace

VerificationException(System.String) Constructor

public VerificationException(string message);

Summary

Constructs and initializes a new instance of the VerificationException .

Parameters

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.

Description

This constructor initializes the System.Security.VerificationException.Message property of the new instance using message. If message is null , 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 .

See Also

System.Security.VerificationException Class, System.Security Namespace

VerificationException(System.String, System.Exception) Constructor

public VerificationException(string message, Exception innerException);

Summary

Constructs and initializes a new instance of the VerificationException class.

Parameters

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 current Exception was raised in a catch block handling innerException .

Description

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 is null , 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.]

See Also

System.Security.VerificationException Class, System.Security Namespace