This documentation is archived and is not being maintained.

ReflectionTypeLoadException Class

The exception that is thrown by the Module.GetTypes method if any of the classes in a module cannot be loaded. This class cannot be inherited.

For a list of all members of this type, see ReflectionTypeLoadException Members.


[Visual Basic]
NotInheritable Public Class ReflectionTypeLoadException
   Inherits SystemException
public sealed class ReflectionTypeLoadException : SystemException
public __gc __sealed class ReflectionTypeLoadException : public
class ReflectionTypeLoadException extends SystemException

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.


ReflectionTypeLoadException uses the HRESULT COR_E_REFLECTIONTYPELOAD that has the value 0x80131602.

An instance contains the array of classes (Types property) that were defined in the module and were loaded. The array can contain some null values. There is also another array of exceptions (LoaderExceptions property). This exception array represents the exceptions that were thrown by the class loader. The holes in the class array line up with the exceptions.

This exception exposes both the array of classes and the array of TypeLoadExceptions.


Namespace: System.Reflection

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

Assembly: Mscorlib (in Mscorlib.dll)

See Also

ReflectionTypeLoadException Members | System.Reflection Namespace