Removes an existing data connection from Server Explorer.
Namespace: Microsoft.VisualStudio.Data.Services
Assembly: Microsoft.VisualStudio.Data.Services (in Microsoft.VisualStudio.Data.Services.dll)
Syntax
'宣言
Sub RemoveConnection ( _
explorerConnection As IVsDataExplorerConnection _
)
'使用
Dim instance As IVsDataExplorerConnectionManager
Dim explorerConnection As IVsDataExplorerConnection
instance.RemoveConnection(explorerConnection)
void RemoveConnection(
IVsDataExplorerConnection explorerConnection
)
void RemoveConnection(
IVsDataExplorerConnection^ explorerConnection
)
function RemoveConnection(
explorerConnection : IVsDataExplorerConnection
)
Parameters
explorerConnection
Type: Microsoft.VisualStudio.Data.Services.IVsDataExplorerConnectionThe data connection to remove.
Exceptions
| Exception | Condition |
|---|---|
| ArgumentNullException | The explorerConnection parameter is a null reference (Nothing in Visual Basic). |
Permissions
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
IVsDataExplorerConnectionManager Interface