TypeLoadException
Class
Definition
The exception that is thrown when type-loading failures occur.
[System.Runtime.InteropServices.ComVisible(true)]
public class TypeLoadException : SystemException
- Inheritance
- Derived
- Attributes
Inherited Members
System.Exception
System.Object
Remarks
TypeLoadException is thrown when the common language runtime cannot find the assembly, the type within the assembly, or cannot load the type. The Message property contains more detailed information that can help you identify the cause of the exception.
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.
Constructors
| TypeLoadException() |
Initializes a new instance of the TypeLoadException class. |
| TypeLoadException(String) |
Initializes a new instance of the TypeLoadException class with a specified error message. |
| TypeLoadException(SerializationInfo, StreamingContext) |
Initializes a new instance of the TypeLoadException class with serialized data. |
| TypeLoadException(String, Exception) |
Initializes a new instance of the TypeLoadException class with a specified error message and a reference to the inner exception that is the cause of this exception. |
Properties
| Message |
Gets the error message for this exception. |
| TypeName |
Gets the fully qualified name of the type that causes the exception. |
Methods
| GetObjectData(SerializationInfo, StreamingContext) |
Sets the SerializationInfo object with the class name, method name, resource ID, and additional exception information. |