FileDialog.RunDialog(IntPtr) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
RunDialog(IntPtr) 调用 以在派生类中显示文件对话框,例如 OpenFileDialog 和 SaveFileDialog。
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
拥有对话框的窗口的句柄。
返回
- 属性
注解
最终显示的对话框分配有所有者窗口,该窗口由 hwndOwner 参数指定。