This method creates a relationship definition object for a new relationship type. Once the relationship definition is created, use the IInterfaceDef::CreateRelationshipColDef method to create origin and destination collection definitions for the new relationship type.
HRESULT CreateRelationshipDef(
VARIANT sObjId,
BSTR Name,
IReposTypeInfo **ppIRelshipDef
);
Parameters
sObjId [in]
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
[in]
The name of the new relationship type.
*ppIRelshipDef
[out]
The COM interface pointer to the new relationship definition object.
Return Value
S_OK
The method completed successfully.
Error
This method failed to complete successfully.