Condividi tramite


IDtsConnectionService.AddConnectionToPackage Method

Adds existing connections to a package designer so that the designer is aware of a new connection manager

Spazio dei nomi: Microsoft.SqlServer.Dts.Runtime.Design
Assembly : Microsoft.SqlServer.Dts.Design (in microsoft.sqlserver.dts.design.dll)

Sintassi

'Dichiarazione
Function AddConnectionToPackage ( _
    connectionManager As ConnectionManager _
) As Boolean
bool AddConnectionToPackage (
    ConnectionManager connectionManager
)
bool AddConnectionToPackage (
    ConnectionManager^ connectionManager
)
boolean AddConnectionToPackage (
    ConnectionManager connectionManager
)
function AddConnectionToPackage (
    connectionManager : ConnectionManager
) : boolean

Parametri

  • connectionManager
    The connect manager to register in the package designer.

Valore restituito

true if the connection is not null, false otherwise.

Osservazioni

This function needs to be called only if a connection manager was added directly to the package without going through the CreateConnection method.

Thread Safety

Any public static (Shared in Microsoft Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Piattaforme

Piattaforme di sviluppo

Per un elenco delle piattaforme supportate, vedere Requisiti hardware e software per l'Installazione di SQL Server 2005.

Piattaforme di destinazione

Per un elenco delle piattaforme supportate, vedere Requisiti hardware e software per l'Installazione di SQL Server 2005.

Vedere anche

Riferimento

IDtsConnectionService Interface
IDtsConnectionService Members
Microsoft.SqlServer.Dts.Runtime.Design Namespace