BadImageFormatException.FileName 屬性

定義

取得造成這個例外狀況的檔案名稱。

public:
 property System::String ^ FileName { System::String ^ get(); };
public string FileName { get; }
public string? FileName { get; }
member this.FileName : string
Public ReadOnly Property FileName As String

屬性值

具有無效影像的檔案名稱;如果沒有檔案名稱傳遞給目前執行個體的建構函式,則為 Null 參考。

備註

此屬性會傳回提供給目前實例之建構函式的檔案名,如果有的話。 如果未指定檔案名,或為 Visual Basic) 中的 null 參考 (Nothing ,則此屬性會傳回 null 參考。

這個屬性是唯讀的。

適用於