Share via


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

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

See Also

Reference

DatabaseConnectionControl Class

Microsoft.VisualStudio.Data.Schema.Package.UI Namespace