This method is used to add target objects to an object collection.
object.Add(reposObj, objName)
The Add method syntax has the following parts.
| Part | Description |
|---|---|
| object | The object collection created by TransientObjectCol. |
| reposObj | The repository object to be added to the collection. |
| objName | The name that the new collection is to use for reposObj. This parameter is optional. |
Populating a TransientObjectCol is done using the Add method for each object that you want to add to the collection.