Fetches from the server the locked status of the item using the item's ID.

Namespace:  Aras.IOM
Assembly:  IOM (in IOM.dll) Version: 11.0.0.6296

Syntax

C#
public int fetchLockStatus()
Visual Basic (Declaration)
Public Function fetchLockStatus As Integer
J#
public int fetchLockStatus()
JScript
public function fetchLockStatus() : int

Return Value

  • -1 - failed to fetch item's lock status from server
  • 0 not locked
  • 1 locked by user
  • 2 locked by other

Remarks

The method sends a request to the server in order to fetch the latest lock status of the item on server and updates the item's property locked_by_id.

Exceptions

ExceptionCondition
System..::.Exception
  • The instance doesn't represent a single item.
  • The item's type or ID is not set.

See Also