Share via


IVsDataConnectionUIConnector.Connect Method

When implemented by a class, opens the data connection in the context of a connection UI (for example, the data connection dialog box).

Namespace:  Microsoft.VisualStudio.Data.Services.SupportEntities
Assembly:  Microsoft.VisualStudio.Data.Services (in Microsoft.VisualStudio.Data.Services.dll)

Syntax

'Declaration
Sub Connect ( _
    connection As IVsDataConnection _
)
void Connect(
    IVsDataConnection connection
)
void Connect(
    IVsDataConnection^ connection
)
abstract Connect : 
        connection:IVsDataConnection -> unit
function Connect(
    connection : IVsDataConnection
)

Parameters

Exceptions

Exception Condition
ArgumentNullException

The connection parameter is nulla null reference (Nothing in Visual Basic).

Remarks

If the connection is already open, this method does nothing.

Override this method to customize the behavior of opening a connection when in the context of a connection UI (for example, the data connection dialog box).

.NET Framework Security

See Also

Reference

IVsDataConnectionUIConnector Interface

Microsoft.VisualStudio.Data.Services.SupportEntities Namespace