Share via


BadImageFormatException.Message 屬性

定義

取得造成這個例外狀況的錯誤訊息和檔案名稱。

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

屬性值

String

字串,包含造成這個例外狀況的錯誤訊息和檔案名稱。

備註

如果未將訊息提供給目前例外狀況的建構函式,這個屬性會傳回系統提供的錯誤訊息。 FileName如果屬性不是Visual Basic) 中的 null 參考 (Nothing ,訊息會包含檔案名。

這個屬性是唯讀的。

適用於