When you define an information model in Microsoft® Repository, you define classes of objects, types of relationships that can exist between objects, and various properties that are attached to these object classes and relationship types. The relationship types that you define in your tool information model are represented by instances of the RelationshipDef class.
To add a new relationship type (also referred to as a relationship definition) to an information model, use the CreateRelationshipDef method of the ReposTypeLib object.
A RelationshipDef object is also a RepositoryObject object. In addition to the members described here, RelationshipDef objects also provide the members that are defined for Repository objects.
Use the RelationshipDef object to:
Property | Description |
ClassID | This property is reserved for future use. |
Collection | Description |
Interfaces | This collection is empty for relationship definitions. It is reserved for future use. |
ItemInCollections | The collection of two collection types that are associated with this relationship definition. |
Properties | The collection of all persistent properties that are attached to the RelationshipDef object. |
ReposTypeLibScopes | The collection of all Repository type libraries that contain this definition. |