## 7.5 InitLock Method

InitLock restricts access for other UA Applications.

A call of this Method for an element that is already locked will be rejected..

While locked, requests from other Applications to modify the locked element (e.g., writing to Variables, or invoking Methods) will be rejected. However, requests to read or navigate will typically work. Servers may choose to implement an exclusive locking where other Applications have no access at all.

The lock is removed when ExitLock is called. It is automatically removed when the MaxInactiveLockTime elapsed (see 7.4).

The signature of this Method is specified below. Table 57 and Table 58 specify the arguments and AddressSpace representation, respectively.

Signature

InitLock(
[in]  String       Context,
[out] Int32        InitLockStatus);


Table 57 – InitLock Method Arguments

Argument Description
Context A string used to provide context information about the current activity going on in the Client.
InitLockStatus 0 – OK