Share via


ReqReaderWriterLock.tryEnterUpdateLock Method [AX 2012]

Attempts to enter the update lock.

Syntax

Note

The syntax of this method varies based on the version of Microsoft Dynamics AX that you are using.

  Microsoft Dynamics AX 2012 R3
          public boolean tryEnterUpdateLock(str _lockName, [int _waitMilliseconds])

  Microsoft Dynamics AX 2012 R2 (SYS)
          public boolean tryEnterUpdateLock(str _lockName)

  Microsoft Dynamics AX 2012 Feature Pack (SYS)
          public boolean tryEnterUpdateLock(str _lockName)

  Microsoft Dynamics AX 2012 (FPK)
          public boolean tryEnterUpdateLock(str _lockName)

  Microsoft Dynamics AX 2012 (SYS)
          public boolean tryEnterUpdateLock(str _lockName)

Run On

Server

Parameters

  • _lockName
    Type: str
    The name of the lock.
  • _waitMilliseconds
    Type: int

Return Value

Type: boolean
true if the lock has been acquired; otherwise, false.

See Also

Reference

ReqReaderWriterLock Class