DatabaseConnectionControl.RemoveConnection Method
Used to remove a DataExplorerConnection from the combo box.
Namespace: Microsoft.VisualStudio.Data.Schema.Package.UI
Assembly: Microsoft.VisualStudio.Data.Schema.Package (in Microsoft.VisualStudio.Data.Schema.Package.dll)
Syntax
'Declaration
Public Sub RemoveConnection ( _
connectionName As String _
)
public void RemoveConnection(
string connectionName
)
public:
void RemoveConnection(
String^ connectionName
)
member RemoveConnection :
connectionName:string -> unit
public function RemoveConnection(
connectionName : String
)
Parameters
- connectionName
Type: System.String
Remarks
This is most useful when you have two of these controls on a form and the user edits a connection in one control so that the connection name changes. You must remove the old connection name from the other control.Example.
.NET Framework Security
- 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.