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


IEditLocksManager.AcquireLocks Method (ArcObjects .NET 10.4 SDK)
ArcObjects Library Reference (CadastralUI)  

IEditLocksManager.AcquireLocks Method

Acquire locks on parcels specified in the Array.

[Visual Basic .NET]
Public Sub AcquireLocks ( _
    ByVal ParcelLockIDs As ILongArray, _
    ByVal allLocksRequired As Boolean, _
    ByRef ppLockedParcelIDs As ILongArray _
)
[C#]
public void AcquireLocks (
    ILongArray ParcelLockIDs,
    bool allLocksRequired,
    ref ILongArray ppLockedParcelIDs
);

Product Availability

Available with ArcGIS Desktop.

Remarks

Use the AcquireLocks method to mark the parcels extracted into a Cadastral Fabric Job as non-editable in another job.  This method insures that parcels extracted in one job will not be edited in another.  This method also insures that the parcels specified in the array are marked as locked so that they can be edited by the user. 

For example, Two parcels are extracted into a Cadastral Job and both parcels are supposed to share centerpoints.  The parcels are locked so that two centerpoints can be merged together (Merge Points Tool) and become shared points between parcels.  In a multi-user scenario, a user can extract a parcel into a Cadastral Job and edit it, but it cannot be edited by another user in another version.

 

 

See Also

IEditLocksManager Interface