IRelationship::get_Target

Meta Data Services Programming

Meta Data Services Programming

IRelationship::get_Target

This method 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 object version.

Return Value

S_OK

The method completed successfully.

Error Values

This method failed to complete successfully.

Remarks

The repository engine uses follows a resolution strategy to choose a specific target object version to return.

There is one situation in which the repository engine can fail to return a version of the target object: If you are operating within a workspace, and the collection of TargetVersions of the versioned relationship does not include the object version that is present in the workspace, this method fails.

See Also

IRelationship::get_Source

IRelationship Interface

Resolution Strategy for Objects and Object Versions