Export (0) Print
Expand All

TypeLoadException Class

The exception that is thrown when type-loading failures occur.

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

System.Object
   System.Exception
      System.SystemException
         System.TypeLoadException
            System.DllNotFoundException
            System.EntryPointNotFoundException

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

TypeLoadException is thrown when the common language runtime cannot find the assembly, the type within the assembly, or cannot load the type.

TypeLoadException uses the HRESULT COR_E_TYPELOAD, that has the value 0x80131522.

For a list of initial property values for an instance of TypeLoadException, see the TypeLoadException constructors.

Requirements

Namespace: System

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

Assembly: Mscorlib (in Mscorlib.dll)

See Also

TypeLoadException Members | System Namespace | Exception | Handling and Throwing Exceptions

Show:
© 2014 Microsoft