O'Reilly logo

C# in a Nutshell by Peter Drayton, Ted Neward, Ben Albahari

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Name

TypeLoadException

Synopsis

This exception signals that a class (or its assembly) cannot be found or loaded by the .NET runtime.

public class TypeLoadException : SystemException {
// Public Constructors
   public method TypeLoadException();  
   public method TypeLoadException(string message);  
   public method TypeLoadException(string message, 
        Exception inner);  
// Protected Constructors
   protected method TypeLoadException(
        System.Runtime.Serialization.SerializationInfo info, 
        System.Runtime.Serialization.StreamingContext context);  
// Public Instance Properties
   public override field string Message{get; }                   // overrides Exception
   public field string TypeName{get; } 
// Public Instance Methods
   public override method void GetObjectData(                   // overrides Exception
        System.Runtime.Serialization.SerializationInfo info, 
        System.Runtime.Serialization.StreamingContext context);  
}

Hierarchy

ObjectException(System.Runtime.Serialization.ISerializable)SystemExceptionTypeLoadException

Subclasses

DllNotFoundException, EntryPointNotFoundException

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required