RelationshipDef Object

Meta Data Services Programming

Meta Data Services Programming

RelationshipDef Object

When you define an information model according to the repository API, 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 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 and a RepositoryObjectVersion object. In addition to the members described here, you can access members that are defined for those objects. For more information about accessing a member of an interface that is not the default interface, see Accessing Automation Object Members.

When to Use

Use the RelationshipDef object to:

  • Access persistent properties that are attached to a relationship definition.

  • Determine which collection types are associated with a relationship definition.

  • Determine which information models contain a relationship definition.
Properties
Property Description
Name The name of a RelationshipDef object
Synonym A synonym of the name of the RelationshipDef object

Collections
Collection Description
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

See Also

RepositoryObject Object

RepositoryObjectVersion Object

ReposTypeLib CreateRelationshipDef Method

ReposTypeLib Object