TransientObjectCol Object

Meta Data Services Programming

Meta Data Services Programming

TransientObjectCol Object

The TransientObjectCol object is an object collection that you can create and dynamically populate at run time using script and object methods rather than stored data in a repository database. TransientObjectCol simulates a standard, stored repository object collection.

You can have multiple transient object collections at one time. The object collection can contain only repository objects. Although enumeration is supported, sequencing is not. Except for the fact that the object collection is not saved to a repository database, it is identical in functionality to the ObjectCol object.

TransientObjectCol is instantiated by application code. Applications that use TransientObjectCol can treat the object collection exactly the same way as any other repository object collection.

Objects represented in TransientObjectCol are not versioned.

When to Use

Use this object to create an object collection that is instantiated by application code and populated dynamically at run time. With this object, you can:

  • Create an object collection that is not stored in a repository database.

  • Get a count of the number of objects in the collection.

  • Add and remove objects to and from the collection.
Properties
Property Description
Count The count of the number of objects in the collection
Item Retrieves a specific object from the collection

Methods
Method Description
Add Adds an object to the collection.
Refresh Supports backward compatibility of the Refresh method. This method is not used.
Remove Removes an object from the collection.

See Also

ITargetObjectCol Interface

MethodDef Object

ObjectCol Class

ScriptDef Object

TransientObjectCol Class