ReposTypeLib CreateRelationshipDef Method

See Also

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. 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.

(c) 1988-1998 Microsoft Corporation. All Rights Reserved.