A relationship connects two Repository objects in the Repository database. A relationship has an originRepository object, a destinationRepository object, and a set of properties. Each relationship conforms to a particular relationship type.
When to Use
Use the Relationship object to manipulate the properties of a relationship, to delete a relationship, or to refresh the cached image of a relationship.
Properties
Property
Description
Destination
The destination object of the relationship.
Interface
The specified object interface.
Name
The name of the relationship's destination object.
Origin
The origin object of the relationship.
Repository
The open Repository instance through which this relationship was instantiated.
Source
The source object of the relationship.
Target
The target object of the relationship.
Type
The type of the relationship.
Methods
Method
Description
Delete
Deletes a relationship.
Lock
Locks the relationship.
Pin
Establishes a particular item in the TargetVersions collection as the pinned target version of the relationship.
Unpin
Ensures that no item in the TargetVersions collection is pinned.
Collections
Collection
Description
Properties
The collection of all of the properties that are attached to the relationship.
TargetVersions
The collection of all versions of the target object that are related to the relationship's source object version.