FileDialog.RunDialog(IntPtr) 方法

定义

RunDialog(IntPtr) 调用 以在派生类中显示文件对话框,例如 OpenFileDialogSaveFileDialog

protected:
 override bool RunDialog(IntPtr hwndOwner);
[System.Security.SecurityCritical]
protected override bool RunDialog(IntPtr hwndOwner);
[<System.Security.SecurityCritical>]
override this.RunDialog : nativeint -> bool
Protected Overrides Function RunDialog (hwndOwner As IntPtr) As Boolean

参数

hwndOwner
IntPtr

nativeint

拥有对话框的窗口的句柄。

返回

如果用户单击显示的对话框的“确定”按钮(例如,);否则为 < a0/>。

属性

注解

最终显示的对话框分配有所有者窗口,该窗口由 hwndOwner 参数指定。

适用于