IAdgObject interface.HasLock Method
Definition
Namespace: ASNA.DataGate.Client
Assembly: ASNA.QSys.DataGate.Client.dll
Determines whether the ADG object has a lock of the specified type.
bool HasLock(ShareTypes ShareType)
Determines whether the ADG object has a lock of the specified type.
Remarks
This method is used to check if the ADG object has a lock of the specified type. The ShareType parameter specifies the type of lock to check for, which can be read, write, or other types of locks. This can be useful for managing concurrent access to the object.
bool HasLock(ShareTypes ShareType)
Parameters
| Type | Parameter name | Description |
|---|---|---|
| ShareTypes | ShareType | The type of lock to check for. |
Returns
| Type | Description |
|---|---|
| Boolean | True if the object has a lock of the specified type, false otherwise. |