Lock(TableLockRequestType,Int32) Method
- Last UpdatedApr 08, 2026
- 1 minute read
Locks the currently bound table. Waits for the given number of milliseconds to elapse before quitting.
public override void Lock(
TableLockRequestType lockType,
int millisecondsToWait
)
public:
void Lock(
TableLockRequestType lockType,
int millisecondsToWait
) override
Parameters
- lockType
- The lock type to perform on the table (for example, read, write).
- millisecondsToWait
- The time to wait for the lock to be achieved (in milliseconds).
| Exception | Description |
|---|---|
| OASySDNA.Common.DNAException | Always thrown. This method should never be called from RealTimeBaseTable. |
| OASySDNA.Common.DNAException | No table is bound to this object yet. |
| VDBException | An error occurred when trying to lock the table. |
OASySDNA.RealTime.HighPerformanceSetDB.RealTimeBaseTable.Bind must be called before this routine.