IReposTypeLib::CreateRelationshipDef
This method creates a relationship definition object for a new relationship type. After 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 assigns 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.
This method failed to complete successfully.