ITargetObjectCol::Move

Meta Data Services Programming

Meta Data Services Programming

ITargetObjectCol::Move

This method moves an object from one point in the collection sequence to another point.

HRESULT Move(
    long
        iIndexFrom,
    long         iIndexTo
);

Parameters

iIndexFrom

[in]
The index of the object to be moved in the collection sequence.

iIndexTo

[in]
The index of the sequence location to which the object is to be moved.

Return Value

S_OK

The method completed successfully.

Error Values

This method failed to complete successfully.

Remarks

This method can only be used for collections that are sequenced.

The origin object version must be unfrozen.

See Also

ITargetObjectCol Interface