語言

FileDialog.CheckFileExists 屬性

定義

會取得或設定一個值,指示若使用者指定不存在的檔名,檔案對話框是否會顯示警告。

public:
 virtual property bool CheckFileExists { bool get(); void set(bool value); };
public:
 property bool CheckFileExists { bool get(); void set(bool value); };
public virtual bool CheckFileExists { get; [System.Security.SecurityCritical] set; }
public bool CheckFileExists { get; set; }
public virtual bool CheckFileExists { get; set; }
[<set: System.Security.SecurityCritical>]
member this.CheckFileExists : bool with get, set
member this.CheckFileExists : bool with get, set
Public Overridable Property CheckFileExists As Boolean
Public Property CheckFileExists As Boolean

屬性值

true若顯示警告;否則,。 false 此基底類別的預設為 false。

屬性

備註

類別在其OpenFileDialog構造子中將此屬性設為 。true

適用於