从服务器资源管理器移除现有数据连接。
命名空间: 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 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。