RelationshipDef Object

See Also

When you define a tool information model in the 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 a tool information model, use the CreateRelationshipDef method of the ReposTypeLib object.

A RelationshipDef object is also a RepositoryObject. In addition to the members described here, RelationshipDef objects also provide the members that are defined for Repository objects.

When to Use

Use the RelationshipDef object to:

Properties

Property Description
ClassID This property is reserved for future use.

Collections

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.