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
)
參數
explorerConnection
類型:Microsoft.VisualStudio.Data.Services.IVsDataExplorerConnection要移除的資料連接。
例外狀況
例外狀況 | 條件 |
---|---|
ArgumentNullException | explorerConnection 參數為 nullnull 參考 (即 Visual Basic 中的 Nothing)。 |
.NET Framework 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。