BadImageFormatException.Message 属性

获取错误信息和引发此异常的文件的名称。

**命名空间:**System
**程序集:**mscorlib(在 mscorlib.dll 中)

语法

声明
Public Overrides ReadOnly Property Message As String
用法
Dim instance As BadImageFormatException
Dim value As String

value = instance.Message
public override string Message { get; }
public:
virtual property String^ Message {
    String^ get () override;
}
/** @property */
public String get_Message ()
public override function get Message () : String

属性值

包含错误信息和引发此异常的文件名称的字符串。

备注

如果没有向当前异常的构造函数提供消息,则此属性返回系统提供的错误信息。如果 FileName 属性不是空引用(在 Visual Basic 中为 Nothing),则该消息包含文件名。

此属性为只读。

平台

Windows 98、Windows 2000 SP4、Windows CE、Windows Millennium Edition、Windows Mobile for Pocket PC、Windows Mobile for Smartphone、Windows Server 2003、Windows XP Media Center Edition、Windows XP Professional x64 Edition、Windows XP SP2、Windows XP Starter Edition

.NET Framework 并不是对每个平台的所有版本都提供支持。有关受支持版本的列表,请参见系统要求

版本信息

.NET Framework

受以下版本支持:2.0、1.1、1.0

.NET Compact Framework

受以下版本支持:2.0

请参见

参考

BadImageFormatException 类
BadImageFormatException 成员
System 命名空间