API Sample - Create a package with a data flow task
Published Mar 25 2019 02:21 PM 631 Views
Copper Contributor
First published on MSDN on Dec 30, 2008

This code creates a package with a single data flow task. It will be used as a base for the more complicated code samples.

static void Main(string[] args)
{
Package package = new Package();

// Add Data Flow Task
Executable dataFlowTask = package.Executables.Add("STOCK:PipelineTask");

// Set the name (otherwise it will be a random GUID value)
TaskHost taskHost = dataFlowTask as TaskHost;
taskHost.Name = "Data Flow Task";

// We need a reference to the InnerObject to add items to the data flow
MainPipe pipeline = taskHost.InnerObject as MainPipe;
}
1 Comment
Version history
Last update:
‎Mar 25 2019 02:21 PM
Updated by: