Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

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.

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

[Visual Basic]
<Serializable>
NotInheritable Public Class ReflectionTypeLoadException
   Inherits SystemException
[C#]
[Serializable]
public sealed class ReflectionTypeLoadException : SystemException
[C++]
[Serializable]
public __gc __sealed class ReflectionTypeLoadException : public
   SystemException
[JScript]
public
   Serializable
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.

Remarks

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.

Requirements

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

Show:
© 2014 Microsoft. All rights reserved.