Tests if a record is locked by the current user.
public bool IsRecordLocked();
public bool IsRecordLocked(int iRecordNumber);
Remarks
IsRecordLocked can be used to test if a record is either explicitly or implicitly locked by the current user. The method without parameters checks the lock state of the current record. If the table is locked, IsRecordLocked will return false. If the record or table is locked by another user or by the user that is using a different table handle, IsRecordLocked will return false.
Note IsRecordLocked only tests for record locks on the given reader. It does not test for locks acquired on any other reader even if they refer to the same physical table. It is very fast because it uses the client-side lock list associated with the table rather than making a server request.
See Also