語言

FileDialog.RunDialog(IntPtr) 方法

定義

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 參數指定。

適用於