FileDialog.RunDialog(IntPtr) 方法

定义

指定一个通用对话框。

protected:
 override bool RunDialog(IntPtr hWndOwner);
protected override bool RunDialog(IntPtr hWndOwner);
override this.RunDialog : nativeint -> bool
Protected Overrides Function RunDialog (hWndOwner As IntPtr) As Boolean

参数

hWndOwner
IntPtr

nativeint

一个值,表示公共对话框的所有者窗口的窗口句柄。

返回

true 如果可以打开该文件,则为否则,为 false.

注解

此方法提供一个实现 RunDialog,并在文件对话框的用户调用时调用 ShowDialog

在派生类 OpenFileDialog 中, SaveFileDialog 可以引发无效的文件名 Exception

适用于