FileDialog.FileName 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得或設定包含檔案對話框中所選檔案完整路徑的字串。
public:
property System::String ^ FileName { System::String ^ get(); void set(System::String ^ value); };
public string FileName { [System.Security.SecurityCritical] get; [System.Security.SecurityCritical] set; }
public string FileName { get; set; }
[<get: System.Security.SecurityCritical>]
[<set: System.Security.SecurityCritical>]
member this.FileName : string with get, set
member this.FileName : string with get, set
Public Property FileName As String
屬性值
A String 是檔案對話框中所選檔案的完整路徑。 預設值為 Empty。
- 屬性
備註
若選取多個檔案名稱(長度 大 FileNames 於一個),則 FileName 包含第一個選擇的檔案名稱。 若未選擇檔名,此屬性包含 而 Empty 非 null。