ReflectionTypeLoadException 类

当模块中的任何类无法加载时由 Module.GetTypes 方法引发的异常。无法继承此类。

**命名空间:**System.Reflection
**程序集:**mscorlib(在 mscorlib.dll 中)

语法

声明
<SerializableAttribute> _
<ComVisibleAttribute(True)> _
Public NotInheritable Class ReflectionTypeLoadException
    Inherits SystemException
    Implements ISerializable
用法
Dim instance As ReflectionTypeLoadException
[SerializableAttribute] 
[ComVisibleAttribute(true)] 
public sealed class ReflectionTypeLoadException : SystemException, ISerializable
[SerializableAttribute] 
[ComVisibleAttribute(true)] 
public ref class ReflectionTypeLoadException sealed : public SystemException, ISerializable
/** @attribute SerializableAttribute() */ 
/** @attribute ComVisibleAttribute(true) */ 
public final class ReflectionTypeLoadException extends SystemException implements ISerializable
SerializableAttribute 
ComVisibleAttribute(true) 
public final class ReflectionTypeLoadException extends SystemException implements ISerializable

备注

ReflectionTypeLoadException 使用值为 0x80131602 的 HRESULT COR_E_REFLECTIONTYPELOAD。

实例包含模块中定义并加载的类(Types 属性)的数组。此数组可以包含一些空值。还存在另一个异常(LoaderExceptions 属性)数组。该异常数组表示由类加载程序引发的异常。类数组中的空缺也属于异常。

该异常同时公开类数组和 TypeLoadExceptions 数组。

继承层次结构

System.Object
   System.Exception
     System.SystemException
      System.Reflection.ReflectionTypeLoadException

线程安全

此类型的任何公共静态(Visual Basic 中的 Shared)成员都是线程安全的,但不保证所有实例成员都是线程安全的。

平台

Windows 98、Windows 2000 SP4、Windows Millennium Edition、Windows Server 2003、Windows XP Media Center Edition、Windows XP Professional x64 Edition、Windows XP SP2、Windows XP Starter Edition

.NET Framework 并不是对每个平台的所有版本都提供支持。有关受支持版本的列表,请参见系统要求

版本信息

.NET Framework

受以下版本支持:2.0、1.1、1.0

请参见

参考

ReflectionTypeLoadException 成员
System.Reflection 命名空间