Partager via


DataConnectionUIConnector.Connect Method

Opens the data connection in the context of a connection UI (for example, the data connection dialog box).

Namespace:  Microsoft.VisualStudio.Data.Framework
Assembly:  Microsoft.VisualStudio.Data.Framework (in Microsoft.VisualStudio.Data.Framework.dll)

Syntax

'Declaration
Public Overridable Sub Connect ( _
    connection As IVsDataConnection _
)
public virtual void Connect(
    IVsDataConnection connection
)
public:
virtual void Connect(
    IVsDataConnection^ connection
)
abstract Connect : 
        connection:IVsDataConnection -> unit  
override Connect : 
        connection:IVsDataConnection -> unit
public function Connect(
    connection : IVsDataConnection
)

Parameters

Implements

IVsDataConnectionUIConnector.Connect(IVsDataConnection)

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

DataConnectionUIConnector Class

Microsoft.VisualStudio.Data.Framework Namespace