Add Method

DTS Programming

DTS Programming
Syntax

Collection.Add Object

Part Description
Collection Expression that evaluates to an object in the Applies To list
Object Object to add to the collection

Remarks

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.

Prototype (C/C++)

HRESULT Add(ObjectInterface *Object);

See Also

New Method

New (Columns) Method

New (ID) Method

New (Name) Method