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


IVersionedWorkspace.Compress Method (ArcObjects .NET 10.4 SDK)
ArcObjects Library Reference (GeoDatabase)  

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

.NET Related Topics

GeoData services