ArcObjects Library Reference (GeoDatabaseExtensions)  

ICadastralFabricLocks.AcquireLocks Method

Acquire locks on the LockingJob. TakeSoftLocks allows locks to be transferred from other jobs in the same version.

[Visual Basic .NET]
Public Sub AcquireLocks ( _
    ByVal pLocks As ILongArray, _
    ByVal TakeSoftLocks As Boolean, _
    ByRef ppLocksInConflict As ILongArray, _
    ByRef ppSoftLocksInConflict As ILongArray _
)
[C#]
public void AcquireLocks (
    ILongArray pLocks,
    bool TakeSoftLocks,
    ref ILongArray ppLocksInConflict,
    ref ILongArray ppSoftLocksInConflict
);
[C++]
HRESULT AcquireLocks(
  ILongArray* pLocks,
  VARIANT_BOOL TakeSoftLocks,
  ILongArray** ppLocksInConflict,
  ILongArray** ppSoftLocksInConflict
);
[C++]

Parameters

pLocks [in]

  pLocks is a parameter of type ILongArray

TakeSoftLocks [in]   TakeSoftLocks is a parameter of type VARIANT_BOOL ppLocksInConflict [in, out]

  ppLocksInConflict is a parameter of type ILongArray

ppSoftLocksInConflict [in, out]

  ppSoftLocksInConflict is a parameter of type ILongArray

Product Availability

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

Remarks

Add the given parcel ids as members of the current job.

The array of locks refer to the object ids of parcels in the parcel fabric class.

Soft locks refers to parcels that can be taken and used as an edit parcel in another job.

Soft locks are:

Set the parameter to True if you'd like to automatically get these locks for the current Job.

See Also

ICadastralFabricLocks Interface