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 命名空间