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
connection
Type: Microsoft.VisualStudio.Data.Services.IVsDataConnectionA data connection object representing the connection to the data source.
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
- 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
IVsDataConnectionUIConnector Interface
Microsoft.VisualStudio.Data.Services.SupportEntities Namespace