FileDialog.CheckFileExists 屬性

定義

取得或設定值,指出如果使用者指定不存在的檔名,對話方塊是否顯示警告訊息。

public:
 virtual property bool CheckFileExists { bool get(); void set(bool value); };
public virtual bool CheckFileExists { get; set; }
member this.CheckFileExists : bool with get, set
Public Overridable Property CheckFileExists As Boolean

屬性值

如果當使用者指定了不存在的副檔名時要顯示警告對話方塊,屬性值為 true,否則為 false。 預設值是 false

備註

預設值是 true 用於繼承 OpenFileDialogfalse 繼承 SaveFileDialog 的 。

適用於

另請參閱