This method retrieves the specified relationship from the collection.
HRESULT get_Item(
VARIANT sItem,
IRelationship **ppIRelship
);
Parameters
Return Value
S_OK
The method completed successfully.
This method failed to complete successfully.
Remarks
Each item in the collection is a versioned relationship — it has a collection of TargetVersions. When you obtain a reference to the target object of a particular item (with the get_Target method of the IRelationship interface), Microsoft® Repository chooses a particular version of the target object from the items in the versioned relationship's TargetVersions collection.
The variation of this method that specifies the relationship by destination object name can only be used for naming collections.