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


IVersionedWorkspace Interface (ArcObjects .NET 10.5 SDK)
ArcObjects Library Reference (GeoDatabase)  

IVersionedWorkspace Interface

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

Product Availability

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

Description

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.

Members

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.

CoClasses that implement IVersionedWorkspace

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

.NET Related Topics

Editing with the geodatabase API | Finding differences between versions | GeoData services