Partager via


AddConnectionToPackage méthode

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

Espace de noms :  Microsoft.SqlServer.Dts.Runtime.Design
Assembly :  Microsoft.SqlServer.Dts.Design (dans Microsoft.SqlServer.Dts.Design.dll)

Syntaxe

'Déclaration
Function AddConnectionToPackage ( _
    connectionManager As ConnectionManager _
) As Boolean
'Utilisation
Dim instance As IDtsConnectionService
Dim connectionManager As ConnectionManager
Dim returnValue As Boolean

returnValue = instance.AddConnectionToPackage(connectionManager)
bool AddConnectionToPackage(
    ConnectionManager connectionManager
)
bool AddConnectionToPackage(
    ConnectionManager^ connectionManager
)
abstract AddConnectionToPackage : 
        connectionManager:ConnectionManager -> bool 
function AddConnectionToPackage(
    connectionManager : ConnectionManager
) : boolean

Paramètres

Valeur de retour

Type : System. . :: . .Boolean
true if the connection is not nullNothingnullptrunitune référence Null (Nothing dans Visual Basic), false otherwise.

Notes

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