Compartir a través de


IDtsConnectionService.AddConnectionToPackage Método

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

Espacio de nombres:  Microsoft.SqlServer.Dts.Runtime.Design
Ensamblado:  Microsoft.SqlServer.Dts.Design (en Microsoft.SqlServer.Dts.Design.dll)

Sintaxis

'Declaración
Function AddConnectionToPackage ( _
    connectionManager As ConnectionManager _
) As Boolean
'Uso
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

Parámetros

Valor devuelto

Tipo: System.Boolean
true if the connection is not nulles una referencia NULL (Nothing en Visual Basic)., false otherwise.

Comentarios

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

Vea también

Referencia

IDtsConnectionService Interfaz

Espacio de nombres Microsoft.SqlServer.Dts.Runtime.Design