System.TypeLoadException Class
Represents the error that occurs when the system cannot load a Type.

See Also: TypeLoadException Members

Syntax

[System.Runtime.InteropServices.ComVisible(true)]
public class TypeLoadException : SystemException

Remarks

TypeLoadException is thrown when the system cannot load a Type , or cannot locate the assembly that contains the Type .

Note:

The following CIL instructions throw TypeLoadException and set the TypeName property via some unspecified mechanism:

  • box
  • castclass
  • cpobj
  • isinst
  • ldobj
  • mkrefany
  • refanyval
  • stobj
  • unbox

Thread Safety

All public static members of this type are safe for multithreaded operations. No instance members are guaranteed to be thread safe.

Requirements

Namespace: System
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0