共用方式為


IVsDataExplorerConnectionManager.PromptAndAddConnection 方法

提示使用者以連接對話方塊加入至伺服器總管的新連接。

命名空間:  Microsoft.VisualStudio.Data.Services
組件:  Microsoft.VisualStudio.Data.Services (在 Microsoft.VisualStudio.Data.Services.dll 中)

語法

'宣告
Function PromptAndAddConnection As IVsDataExplorerConnection
IVsDataExplorerConnection PromptAndAddConnection()
IVsDataExplorerConnection^ PromptAndAddConnection()
abstract PromptAndAddConnection : unit -> IVsDataExplorerConnection
function PromptAndAddConnection() : IVsDataExplorerConnection

傳回值

類型:Microsoft.VisualStudio.Data.Services.IVsDataExplorerConnection
表示新資料連接的 IVsDataExplorerConnection 物件。

.NET Framework 安全性

請參閱

參考

IVsDataExplorerConnectionManager 介面

Microsoft.VisualStudio.Data.Services 命名空間