This document is archived and information here might be outdated. Recommended version. |
ArcObjects namespaces > GeoDatabaseExtensions > ESRI.ArcGIS.GeoDatabaseExtensions > Interfaces > IC > ICadastralFabricLocks Interface > ICadastralFabricLocks.AcquireLocks Method (ArcObjects .NET 10.4 SDK) |
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
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.