Share via


IDtsConnectionService.AddConnectionToPackage(ConnectionManager) Method

Definition

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

public:
 bool AddConnectionToPackage(Microsoft::SqlServer::Dts::Runtime::ConnectionManager ^ connectionManager);
public bool AddConnectionToPackage (Microsoft.SqlServer.Dts.Runtime.ConnectionManager connectionManager);
abstract member AddConnectionToPackage : Microsoft.SqlServer.Dts.Runtime.ConnectionManager -> bool
Public Function AddConnectionToPackage (connectionManager As ConnectionManager) As Boolean

Parameters

connectionManager
ConnectionManager

The connect manager to register in the package designer.

Returns

true if the connection is not null, false otherwise.

Remarks

This function needs to be called only if a connection manager was added directly to the package without going through the <xref:Microsoft.SqlServer.Dts.Runtime.Design.IDtsConnectionService.CreateConnection%2A> method.

Applies to