Manipulating Object Versions

Meta Data Services Programming

Meta Data Services Programming

Manipulating Object Versions

Access to repository object versions is supported at both the COM level and the Automation level. Given a specific version of a repository object, you can perform the operations listed in the following table. For more information about retrieving or changing object version names, see Retrieving an Object Version's Name and Changing an Object Version's Name.

To Use
Create the first object version The CreateObject method of the IRepository interface.
Create subsequent object versions The CreateVersion method of the IRepositoryObjectVersion interface.
Determine which predecessor version was the creation version The PredecessorCreationVersion method of the IRepositoryObjectVersion interface.
Determine how this version of the current object was resolved The ResolutionType method of the IRepositoryObjectVersion interface.
Freeze an object version The FreezeVersion method of the IRepositoryObjectVersion interface.
Retrieve the object-version identifier of an object version The VersionID property of the IRepositoryObjectVersion interface.
Retrieve the state of an object version The IsFrozen method of the IRepositoryObjectVersion interface and the IsCheckedOut method of the IWorkspaceItem interface.
Merge the contents of another object version into the current object version The MergeVersion method of the IRepositoryObjectVersion interface.

For more information, see the Microsoft® SQL Server™ 2000 Meta Data Services Software Development Kit (SDK).

See Also

IRepository Interface

IRepositoryObjectVersion Interface

IWorkspaceItem Interface

Repository API Reference

Repository Object

RepositoryObjectVersion Object

Versioning Objects

Workspace Object