This document is archived and information here might be outdated. Recommended version. |
ArcObjects namespaces > GeoDatabaseExtensions > ESRI.ArcGIS.GeoDatabaseExtensions > Interfaces > IC > ICadastralFabricLocks Interface > ICadastralFabricLocks.LockJob Method (ArcObjects .NET 10.4 SDK) |
Lock current job. An existing lock will cause failure.
[Visual Basic .NET] Public Function LockJob ( _ ) As Boolean
[C#] public bool LockJob ( );
[C++]
HRESULT LockJob(
VARIANT_BOOL* Succeed
);
[C++]
Parameters Succeed [out, retval] Succeed is a parameter of type VARIANT_BOOL
Enters the MachineName and ProcessID values into the Jobs table.
This method is usually the next call after setting the LockingJob. If the method returns FALSE, then the lock is already held by another machine or process id.