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


IVersionedWorkspace.Compress Method (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 > IVersionedWorkspace.Compress Method
ArcGIS Developer Help

IVersionedWorkspace.Compress Method

Compresses the database by removing states not referenced by a version.

[Visual Basic .NET]
Public Sub Compress ( _
)
[C#]
public void Compress (
);
[C++]
HRESULT Compress(
void
);

Product Availability

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

Errors Returned

FDO_E_NO_PERMISSION: No permissions to compress.

FDO_E_SE_STATE_TREE_INUSE: Attepting to lock entire state tree, but state locks are present.

Remarks

Versioned workspace compression is available using the Compress method. Compressing the versioned workspace will remove those database states not referenced by a version.

Only the ArcSDE administrator user can execute the compress method.

See Also

IVersionedWorkspace Interface