Retrieves an IRepositoryObject interface pointer to a target object version of a relationship.
HRESULT get_Target(
IRepositoryObject **ppIRepObj
);
Parameters
Return Value
S_OK
The method completed successfully.
This method failed to complete successfully.
Remarks
Repository uses its Resolution Strategy to choose a target object version to return to you.
In one situation, Repository can fail to return a version of the target object. If you are operating within a workspace, and the versioned relationship's collection of TargetVersions does not include the object version that is present in the workspace, this method fails.