Access to relationships is supported at both the COM level and the Automation level. Given a relationship that connects two Microsoft® Repository objects, you can perform the operations listed below. These operations are performed relative to a specific version of the source object.
To | Use |
Pin the destination object version | The Pin method of the IVersionedRelationship interface |
Unpin the destination object version | The Unpin method of the IVersionedRelationship interface |
Retrieve (a version of) the target object | The Target property of the IRelationship interface |
Retrieve the source object version | The Source property of the IRelationship interface |
Create a new relationship – to relate a new target object to a source object | The Add method of the IRelationshipCol or ITargetObjectCol interface |
Relate a subsequent target object version to a source object | The Add method for the TargetVersions collection. This collection is accessible through the IVersionedRelationship interface |
For More Information See the Repository Automation Reference or the Repository COM Reference section of the Repository Reference.