This document is archived and information here might be outdated.  Recommended version.

IVersionedWorkspace Interface (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Geodatabase > ESRI.ArcGIS.GeoDatabase > Interfaces > IV > IVersionedWorkspace Interface
ArcGIS Developer Help

IVersionedWorkspace Interface

Provides access to members that manage versions. Note: the IVersionedWorkspace interface has been superseded by IVersionedWorkspace3. Please consider using the more recent version.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.


A VersionedWorkspace is a workspace that supports versioning. It provides the ability to set the version in which the workspace will reference. It also provides methods to enumerate through all the versions in the database and the ability to compress.

When To Use

The IVersionedWorkspace is the main interface for accessing versions. For example, use its methods to retrieve versions, find versions and create new versions.


Name Description
Method Compress Compresses the database by removing states not referenced by a version.
Read-only property DefaultVersion The Default version.
Method FindVersion Finds a specific version given it's name.
Read-only property Versions All versions the user owns and those which are public or protected.

Classes that implement IVersionedWorkspace

Classes Description
Sde4Workspace (esriDataSourcesGDB) Esri SDE (4.x) Feature Database.
VersionedWorkspace VersionedWorkspace Object.