BadImageFormatException.Message 属性

定义

获取错误消息和引发此异常的文件的名称。Gets the error message and the name of the file that caused this exception.

public:
 virtual property System::String ^ Message { System::String ^ get(); };
public override string Message { get; }
member this.Message : string
Public Overrides ReadOnly Property Message As String

属性值

包含错误消息和引发此异常的文件名称的字符串。A string containing the error message and the name of the file that caused this exception.

注解

如果没有为当前异常的构造函数提供消息, 此属性将返回系统提供的错误消息。If no message was supplied to the constructor for the current exception, this property returns a system-supplied error message. 如果该FileName属性不是空引用 (Nothing在 Visual Basic 中), 则该消息将包括文件名。If the FileName property is not a null reference (Nothing in Visual Basic), the message includes the file name.

此属性是只读的。This property is read-only.

适用于