The Add method adds an object to a collection.
Collection.Add Object
Part | Description |
---|---|
Collection | Expression that evaluates to an object in the Applies To list |
Object | Object to add to the collection |
The required type of Object depends on the collection to which it is being added.
Collection | Object |
---|---|
Columns | Column Object |
Connections | Connection Object Connection2 Object |
DTSMQMessages | DTSMQMessage Object |
DynamicPropertiesTaskAssignments | DynamicPropertiesTaskAssignment Object |
GlobalVariables | GlobalVariable Object |
Lookups | Lookup Object |
PrecedenceConstraints | PrecedenceConstraint Object |
Steps | Step Object Step2 Object |
Tasks | Task Object |
Transformations | Transformation Object Transformation2 Object |
TransformationSets | TransformationSet Object |
The Add method does not create an object; it adds an existing object to its collection. Typically, you create the object with the New method of the collection.
HRESULT Add(ObjectInterface *Object);