Retrieves an IRepositoryObject interface pointer to a target object version of a relationship.
HRESULT get_Target(
IRepositoryObject **ppIRepObj
);
Parameters
*ppIRepObj
[out]
The IRepositoryObject interface pointer for the target Repository object version.
Return Value
S_OK
The method completed successfully.
Error
This method failed to complete successfully.
Remarks
The Repository uses its Resolution Strategy to choose a target object version to return to you.
In one situation, the 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.