IDtsConnectionService.AddConnectionToPackage(ConnectionManager) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.