System.Reflection.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.

See Also: ReflectionTypeLoadException Members


public sealed class ReflectionTypeLoadException : SystemException


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
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0,,