Meta Data Services Programming

IVersionCol::Add

Adds an object version to the collection.

Syntax

HRESULT Add(
    IRepositoryObjectVersion *pIReposVersion
    IRepositoryObjectVersion **ppIAddedVersion
);

Parts

*pIReposVersion

[in]
The IRepositoryObjectVersion interface pointer to the object version to be added to the collection.

**ppIAddedVersion

[in]

  1. For Target-Versions, ppIAddedVersion is the same as the first parameter: pIReposVersion.

  2. For Versions-of-Workspace, ppIAddedVersion is the workspace-scoped version of pIReposVersion.
Return Value

S_OK

The method completed successfully.

Error Values

This method failed to complete successfully.

Remarks

There are many different kinds of object version collections. You can apply this method to some of them, but not to others. This method works for:

This method does not work for:

See Also

IVersionCol Interface