This documentation is archived and is not being maintained.

BadImageFormatException.Message Property

Gets the error message and the name of the file that caused this exception.

[Visual Basic]
Overrides Public ReadOnly Property Message As String
[C#]
public override string Message {get;}
[C++]
public: __property String* get_Message();
[JScript]
public override function get Message() : String;

Property Value

A string containing the error message and the name of the file that caused this exception.

Remarks

If no message was supplied to the constructor for the current exception, this property returns a system-supplied error message. If the FileName property is not a null reference (Nothing in Visual Basic), the message includes the file name.

This property is read-only.

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Common Language Infrastructure (CLI) Standard

See Also

BadImageFormatException Class | BadImageFormatException Members | System Namespace

Show: