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
'宣言
Sub Connect ( _
connection As IVsDataConnection _
)
'使用
Dim instance As IVsDataConnectionUIConnector
Dim connection As IVsDataConnection
instance.Connect(connection)
void Connect(
IVsDataConnection connection
)
void Connect(
IVsDataConnection^ connection
)
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 a 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).
Permissions
- 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
IVsDataConnectionUIConnector Members
Microsoft.VisualStudio.Data.Services.SupportEntities Namespace