ReposTypeLib CreateRelationshipDef Method

Meta Data Services Programming

Meta Data Services Programming

ReposTypeLib CreateRelationshipDef Method

This method creates a relationship definition object for a new relationship type. Once the relationship definition is created, use the CreateRelationshipColDef method of the InterfaceDef object to create origin and destination collection definitions for the new relationship type.

Syntax

Set variable  =  object.CreateRelationshipDef(sObjId, Name)

The CreateRelationshipDef method syntax has the following parts.

Part Description
variable A variable declared as a RelationshipDef object. It receives the new relationship definition.
object An object expression that evaluates to a ReposTypeLib object.
sObjId The object identifier for the new relationship type. The repository engine will assign an object identifier if you set this parameter to OBJID_NULL.
Name The name of the new relationship type.

See Also

InterfaceDef CreateRelationshipColDef Method

InterfaceDef Object

Object Identifiers and Internal Identifiers

RelationshipDef Object

ReposTypeLib Object