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#
[ObsoleteAttribute("The method will be removed from future releases of IOM APIs. Please use Item.fetchLockStatus() or Item.getLockStatus() instead", 
	false)]
public int isLocked()
Visual Basic (Declaration)
<ObsoleteAttribute("The method will be removed from future releases of IOM APIs. Please use Item.fetchLockStatus() or Item.getLockStatus() instead",  _
	False)> _
Public Function isLocked As Integer
J#
/** @attribute ObsoleteAttribute("The method will be removed from future releases of IOM APIs. Please use Item.fetchLockStatus() or Item.getLockStatus() instead", false) */
public int isLocked()
JScript
public function isLocked() : int

Return Value

  • 0 not locked
  • 1 locked by user
  • 2 locked by other

Remarks

The method sends a request to the server to fetch item's lock status only if the item doesn't have property locked_by_id set, otherwise the value of the property is returned.

Exceptions

ExceptionCondition
System..::.ExceptionThe instance doesn't represent a single item.

See Also