Defining a Relationship Collection
Tools and applications can sometimes manipulate sets of relationships as a single unit. To represent this functionality in your information model, you can use relationship collections. The Repository Type Information Model (RTIM) lets you describe relationship collection types as templates to which relationship collections must conform.
A relationship collection is a set of similar relationships. To be part of a relationship collection, the relationships must be similar in these two ways:
- They must be of the same relationship type. All the relationships in a collection must conform to the same relationship type.
- They must have the same object in the same role. One object must be common to all relationships in the collection. That object must play the same role (either origin or destination) for all relationships in the collection.
To define a relationship collection, use the RelationshipCol class or IRelationshipCol interface for COM programs, or Relationship object for Automation programs.
See Also
Defining Relationships and Collections
Naming and Unique-Naming Collections