Manage Versions in ArcMap/ArcCatalog

Created:11/1/2001
Description:

This sample demonstrates a simple Version Manager that can be used from withing ArcMap or ArcCatalog. It displays the version in a tree structure based on lineage. It also allows users to create, delete, and modify versions.

How to use:
  1. Register VersionManager.VersionManagerCmd in the Component Category "ESRI Mx Commands"
  2. Register VersionManager.VersionManagerCmd in the Component Category "ESRI Gx Commands"
  3. Add the VersionManager.VersionManagerCmd command to the ArcMap/ArcCatalog GUI"
  4. If in ArcCatalog, select a VersionedWorkspace and then click on the Command
  5. If in ArcMap, select a VersionedWorkspace, FeatureLayer, FeatureClass, or ObjectClass and then click on the Command

Application:
ArcMap

Requires: Versioned GeoDatabase

Difficulty: Advanced


Visual Basic
File Description
VersionManagerCmd.cls Object that implements ICommand that is used to bring up the Version Manager.
frmVersionManager.frm Form displaying the Versions that allows the user to navigate and update versions.
VersionManager.dll DLL file for the contained object.
VersionManager.vbp Project for the contained object dll.


Key CoClasses: VersionedWorkspace
Key Interfaces: IVersionsWorkspace, IVersion, IVersionInfo
Key Members: IVersionedWorkspace.FindVersion, IVersion.CreateVersion, IVersion.DeleteVersion, IVersion.VersionInfo, IVersionInfo.Access, IVersionInfo.Description, IVersionInfo.VersionName