共用方式為


IVsDataExplorerConnectionManager.RemoveConnection 方法

從伺服器總管移除現有的資料連接。

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

語法

'宣告
Sub RemoveConnection ( _
    explorerConnection As IVsDataExplorerConnection _
)
void RemoveConnection(
    IVsDataExplorerConnection explorerConnection
)
void RemoveConnection(
    IVsDataExplorerConnection^ explorerConnection
)
abstract RemoveConnection : 
        explorerConnection:IVsDataExplorerConnection -> unit
function RemoveConnection(
    explorerConnection : IVsDataExplorerConnection
)

參數

例外狀況

例外狀況 條件
ArgumentNullException

explorerConnection 參數為 nullnull 參考 (即 Visual Basic 中的 Nothing)。

.NET Framework 安全性

請參閱

參考

IVsDataExplorerConnectionManager 介面

Microsoft.VisualStudio.Data.Services 命名空間