This document is archived and information here might be outdated. Recommended version. |
ArcObjects Help for .NET developers > ArcObjects namespaces > Geodatabase > ESRI.ArcGIS.GeoDatabase > Interfaces > IV > IVersionedWorkspace Interface > IVersionedWorkspace.Compress Method (ArcObjects .NET 10.5 SDK) |
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
);
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.
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.