Removes an existing DataExplorerConnection object instance from the set of current connections.
Namespace: Microsoft.VisualStudio.Data
Assembly: Microsoft.VisualStudio.Data (in Microsoft.VisualStudio.Data.dll)
Syntax
'宣言
Public MustOverride Sub RemoveConnection ( _
explorerConnection As DataExplorerConnection _
)
'使用
Dim instance As DataExplorerConnectionManager
Dim explorerConnection As DataExplorerConnection
instance.RemoveConnection(explorerConnection)
public abstract void RemoveConnection(
DataExplorerConnection explorerConnection
)
public:
virtual void RemoveConnection(
DataExplorerConnection^ explorerConnection
) abstract
public abstract function RemoveConnection(
explorerConnection : DataExplorerConnection
)
Parameters
explorerConnection
Type: Microsoft.VisualStudio.Data.DataExplorerConnectionThe data explorer connection to remove.
Exceptions
| Exception | Condition |
|---|---|
| ArgumentNullException | The explorerConnection parameter is null. |
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
DataExplorerConnectionManager Class