Kommentar
Åtkomst till den här sidan kräver auktorisering. Du kan prova att logga in eller ändra kataloger.
Åtkomst till den här sidan kräver auktorisering. Du kan prova att ändra kataloger.
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
connection
Type: Microsoft.VisualStudio.Data.Services.IVsDataConnectionA data connection object representing the connection to the data source.
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
- 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.