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 virtual bool CheckFileExists { get; set; }
public 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

適用於