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

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

IVersion.VersionLocks Property

This version's locks.

[Visual Basic .NET]
Public ReadOnly Property VersionLocks As IEnumLockInfo
public IEnumLockInfo VersionLocks {get;}
HRESULT get_VersionLocks(
  IEnumLockInfo** locks
locks [out, retval]

locks is a parameter of type IEnumLockInfo**

Product Availability

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


The VersionLocks method returns the enumeration IEnumLockInfo. Using the enumeration you can detect what users are currently editing the version or currently reconciling the version. This information can be used to determine if the version is available for editing, to be reconciled or to be reconciled against.

See ILockInfo and esriLockType constants for additional information regarding locking descriptions.

See Also

IVersion Interface