FileNotFoundException.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

屬性值

String

檔案名稱,或如果沒有任何檔案名稱傳遞給這個執行個體的建構函式,則為 null

備註

這個屬性是唯讀的。

適用於

另請參閱