ReflectionTypeLoadException 构造函数

定义

初始化 ReflectionTypeLoadException 类的新实例。Initializes a new instance of the ReflectionTypeLoadException class.

重载

ReflectionTypeLoadException(Type[], Exception[])

用给定类及其关联的异常初始化 ReflectionTypeLoadException 类的新实例。Initializes a new instance of the ReflectionTypeLoadException class with the given classes and their associated exceptions.

ReflectionTypeLoadException(Type[], Exception[], String)

用给定类、与此类关联的异常以及异常说明初始化 ReflectionTypeLoadException 类的新实例。Initializes a new instance of the ReflectionTypeLoadException class with the given classes, their associated exceptions, and exception descriptions.

ReflectionTypeLoadException(Type[], Exception[])

用给定类及其关联的异常初始化 ReflectionTypeLoadException 类的新实例。Initializes a new instance of the ReflectionTypeLoadException class with the given classes and their associated exceptions.

public:
 ReflectionTypeLoadException(cli::array <Type ^> ^ classes, cli::array <Exception ^> ^ exceptions);
public ReflectionTypeLoadException (Type[] classes, Exception[] exceptions);
new System.Reflection.ReflectionTypeLoadException : Type[] * Exception[] -> System.Reflection.ReflectionTypeLoadException
Public Sub New (classes As Type(), exceptions As Exception())

参数

classes
Type[]

Type 类型的数组,其中包含在模块中定义并加载的类。An array of type Type containing the classes that were defined in the module and loaded. 该数组可以包含空引用(在 Visual Basic 中为 Nothing)值。This array can contain null reference (Nothing in Visual Basic) values.

exceptions
Exception[]

Exception 类型的数组,其中包含由类加载程序引发的异常。An array of type Exception containing the exceptions that were thrown by the class loader. classes 数组中的空引用(在 Visual Basic 中为 Nothing)值与此 exceptions 数组中的异常保持对应。The null reference (Nothing in Visual Basic) values in the classes array line up with the exceptions in this exceptions array.

ReflectionTypeLoadException(Type[], Exception[], String)

用给定类、与此类关联的异常以及异常说明初始化 ReflectionTypeLoadException 类的新实例。Initializes a new instance of the ReflectionTypeLoadException class with the given classes, their associated exceptions, and exception descriptions.

public:
 ReflectionTypeLoadException(cli::array <Type ^> ^ classes, cli::array <Exception ^> ^ exceptions, System::String ^ message);
public ReflectionTypeLoadException (Type[] classes, Exception[] exceptions, string message);
new System.Reflection.ReflectionTypeLoadException : Type[] * Exception[] * string -> System.Reflection.ReflectionTypeLoadException
Public Sub New (classes As Type(), exceptions As Exception(), message As String)

参数

classes
Type[]

Type 类型的数组,其中包含在模块中定义并加载的类。An array of type Type containing the classes that were defined in the module and loaded. 该数组可以包含空引用(在 Visual Basic 中为 Nothing)值。This array can contain null reference (Nothing in Visual Basic) values.

exceptions
Exception[]

Exception 类型的数组,其中包含由类加载程序引发的异常。An array of type Exception containing the exceptions that were thrown by the class loader. classes 数组中的空引用(在 Visual Basic 中为 Nothing)值与此 exceptions 数组中的异常保持对应。The null reference (Nothing in Visual Basic) values in the classes array line up with the exceptions in this exceptions array.

message
String

描述此异常的引发原因的 StringA String describing the reason the exception was thrown.

适用于