如何从 Visual Studio 的扩展中显示 window“添加连接”?

How to show the window “Add connection” from the extension for Visual Studio?

我正在为 Visual Studio.

开发扩展 (VSPackage)

我需要显示 window "Add Connection"。

我该怎么做?

我在 MSDN 上查找过它,但没有找到使用此类 windows 的示例。显示 window "Data Source Selection" 的变体也适合我。我不需要 window "Server Explorer".

有几个 IVsDataXXX 接口,可能因 VS 版本而异。看到我很久以前写的这些文章:

HOWTO: Using the Choose Data Source dialog of Visual Studio 2005 from your own code

HOWTO: Get data sources, data providers and data connections from a Visual Studio 2005 add-in