Meta Data Services Programming
RelationshipDef ItemInCollections Collection
A relationship type is associated with two collection types. Origin collections conform to one collection type (the origin collection type), and destination collections conform to the other collection type (the destination collection type). The ItemInCollections collection contains the two collection definition objects that represent the origin and destination collection types.
If the relationship type has not yet been connected to its origin and destination collection types, this collection can contain less than two collection types.
Syntax
Set variable = object.ItemInCollections(index)
The ItemInCollections collection syntax has the following parts.
Part | Description |
---|---|
variable | A variable declared as a CollectionDef object. It receives the specified collection definition. |
object | An object expression that evaluates to a RelationshipDef object. |
index | An integer index that identifies which element in the collection is to be addressed. The valid range is from one to the total number of elements in the collection. The number of elements in the collection is specified by object.ItemInCollections.Count. For more information, see Selecting Items in a Collection. |
Remarks
The following characteristics are true for this collection.
Collection characteristic | Value | Description |
---|---|---|
Relationship Type | Collection_Contains_Items | This is the type of relationship by which all items of the collection are connected to a common source object. |
Source Is Origin | No | The source object for the collection is not the same as the origin object. |
Minimum Collection Size | Zero | The minimum number of items that must be contained in the collection is zero. |
Maximum Collection Size | Two | The maximum number of items that can be contained in the collection is two. |
Sequenced Collection | No | As a destination collection, this does not have an explicitly defined sequence. Collections of origin objects are never sequenced. |
Deletes Propagated | No | Deleting an origin object or a relationship in the collection does not cause the deletion of a corresponding destination object. |
Destinations Named | No | The relationship type for the collection does not permit the naming of destination objects. |
Case-sensitive Names | Not applicable | Case-sensitive naming is not applicable for this collection. |
Unique Names | Not applicable | Unique naming is not applicable for this collection. |