ReflectionTypeLoadException 构造函数
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
初始化 ReflectionTypeLoadException 类的新实例。
ReflectionTypeLoadException(Type[], Exception[]) |
用给定类及其关联的异常初始化 ReflectionTypeLoadException 类的新实例。 |
ReflectionTypeLoadException(Type[], Exception[], String) |
用给定类、与此类关联的异常以及异常说明初始化 ReflectionTypeLoadException 类的新实例。 |
用给定类及其关联的异常初始化 ReflectionTypeLoadException 类的新实例。
public:
ReflectionTypeLoadException(cli::array <Type ^> ^ classes, cli::array <Exception ^> ^ exceptions);
public ReflectionTypeLoadException (Type[] classes, Exception[] exceptions);
public ReflectionTypeLoadException (Type?[]? classes, 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
类型的数组,其中包含在模块中定义并加载的类。 该数组可以包含空引用(在 Visual Basic 中为 Nothing
)值。
- exceptions
- Exception[]
Exception
类型的数组,其中包含由类加载程序引发的异常。
classes
数组中的空引用(在 Visual Basic 中为 Nothing
)值与此 exceptions
数组中的异常保持对应。
适用于
.NET 9 和其他版本
产品 | 版本 |
---|---|
.NET | Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9 |
.NET Framework | 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
.NET Standard | 1.0, 1.1, 1.2, 1.3, 1.4, 1.5, 1.6, 2.0, 2.1 |
UWP | 10.0 |
用给定类、与此类关联的异常以及异常说明初始化 ReflectionTypeLoadException 类的新实例。
public:
ReflectionTypeLoadException(cli::array <Type ^> ^ classes, cli::array <Exception ^> ^ exceptions, System::String ^ message);
public ReflectionTypeLoadException (Type[] classes, Exception[] exceptions, string message);
public ReflectionTypeLoadException (Type?[]? classes, Exception?[]? exceptions, 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
类型的数组,其中包含在模块中定义并加载的类。 该数组可以包含空引用(在 Visual Basic 中为 Nothing
)值。
- exceptions
- Exception[]
Exception
类型的数组,其中包含由类加载程序引发的异常。
classes
数组中的空引用(在 Visual Basic 中为 Nothing
)值与此 exceptions
数组中的异常保持对应。
- message
- String
描述此异常的引发原因的 String
。
适用于
.NET 9 和其他版本
产品 | 版本 |
---|---|
.NET | Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9 |
.NET Framework | 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
.NET Standard | 1.0, 1.1, 1.2, 1.3, 1.4, 1.5, 1.6, 2.0, 2.1 |
UWP | 10.0 |