FileDialog.RunDialog(IntPtr) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
RunDialog(IntPtr) 被呼叫來顯示衍生類別中的檔案對話框,例如 OpenFileDialog 和 SaveFileDialog。
protected:
override bool RunDialog(IntPtr hwndOwner);
[System.Security.SecurityCritical]
protected override bool RunDialog(IntPtr hwndOwner);
protected override bool RunDialog(IntPtr hwndOwner);
[<System.Security.SecurityCritical>]
override this.RunDialog : nativeint -> bool
override this.RunDialog : nativeint -> bool
Protected Overrides Function RunDialog (hwndOwner As IntPtr) As Boolean
參數
- hwndOwner
-
IntPtr
nativeint
把操作切換到擁有該對話的視窗。
傳回
true如果使用者點擊顯示對話框的確定按鈕(例如,OpenFileDialog, , SaveFileDialog),;否則,。 false
- 屬性
備註
最終顯示的對話框會被分配一個擁有者視窗,該視窗由 hwndOwner 參數指定。