IReposTypeLib::CreateRelationshipDef

Meta Data Services Programming

Meta Data Services Programming

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.

Error Values

This method failed to complete successfully.

See Also

IInterfaceDef::CreateRelationshipColDef

IReposTypeLib Interface

RelationshipDef Class