IVsUIShell5.GetOpenFileNameViaDlgEx2 方法

定义

显示 "打开文件" 对话框以获取指定的打开文件。

public:
 void GetOpenFileNameViaDlgEx2(cli::array <Microsoft::VisualStudio::Shell::Interop::VSOPENFILENAMEW> ^ openFileName, System::String ^ HelpTopic, System::String ^ openButtonLabel);
void GetOpenFileNameViaDlgEx2(std::Array <Microsoft::VisualStudio::Shell::Interop::VSOPENFILENAMEW> const & openFileName, std::wstring const & HelpTopic, std::wstring const & openButtonLabel);
public void GetOpenFileNameViaDlgEx2 (Microsoft.VisualStudio.Shell.Interop.VSOPENFILENAMEW[] openFileName, string HelpTopic, string openButtonLabel);
abstract member GetOpenFileNameViaDlgEx2 : Microsoft.VisualStudio.Shell.Interop.VSOPENFILENAMEW[] * string * string -> unit
Public Sub GetOpenFileNameViaDlgEx2 (openFileName As VSOPENFILENAMEW(), HelpTopic As String, openButtonLabel As String)

参数

openFileName
VSOPENFILENAMEW[]

[in,out]一个 VSOPENFILENAMEW 结构,它包含用于初始化 "文件打开" 对话框的信息。 此方法返回时,此结构包含有关用户文件选择的信息。

HelpTopic
String

中一个字符串,包含帮助主题。

openButtonLabel
String

中在调用期间显示的文件打开对话框中的 "打开" 按钮的标题。 此参数将覆盖按钮的默认打开名称。

适用于