IAdgObject interface.Lock Method

Definition

Namespace: ASNA.DataGate.Client
Assembly: ASNA.QSys.DataGate.Client.dll

Locks the ADG object with the specified share type and wait option.

void Lock(ShareTypes ShareType, WaitOptions WaitOption, short WaitTime)

Locks the ADG object with the specified share type and wait option.

Remarks

This method is used to apply a lock of the specified type to the ADG object. The ShareType parameter specifies the type of lock to apply, which can be read, write, or other types of locks. The WaitOption parameter specifies what to do if the lock cannot be immediately acquired, such as waiting for the lock to become available or throwing an exception.

void Lock(ShareTypes ShareType, WaitOptions WaitOption, short WaitTime)

Parameters

Type Parameter name Description
ShareTypes ShareType The type of lock to apply.
WaitOptions WaitOption The wait option to use if the lock cannot be immediately acquired.
Int16 WaitTime The wait time to use if the lock cannot be immediately acquired.

See Also