Type Summary



Type Summary


CF public class BadImageFormatException : SystemException

       {

       // Constructors

       CF public BadImageFormatException();

    MS CF protected BadImageFormatException(SerializationInfo info,

                    StreamingContext context);

       CF public BadImageFormatException(string message);

       CF public BadImageFormatException(string message, Exception inner);

       CF public BadImageFormatException(string message, string fileName);

       CF public BadImageFormatException(string message, string fileName,

                  Exception inner);



       // Properties

       CF public string FileName { get; }

    MS CF public string FusionLog { get; }

       CF public override string Message { get; }



       // Methods

    MS CF public override void GetObjectData(SerializationInfo info,

                               StreamingContext context);

       CF public override string ToString();

       }


BA You have to be careful when you pick a code name for a project as they sometimes leak out into the final product. "Fusion" (as in the FusionLog property) is a classic example of that. Fusion is the code name for a set of software lifecyle management infrastructure used in the CLR and some parts of Windows. Now it is immortalized in this property that returns information about the fusion probing history.

BG Some people have recently asked what this refers to—does it refer to a corrupt JPEG or bitmap, or a corrupt file of any sort? It was meant to refer to an executable or a DLL. The name comes from the OS loader's terminology for a portable executable (PE) image. Perhaps in a future version we'll add a different exception for general file format corruption.