FirstOrDefault(Action<TRecord>,LockType,LockType) Method
- Last UpdatedApr 08, 2026
- 1 minute read
Performs the action on the first record in the collection if it exists, ordered by ascending IRecord.RecordNumber. If the collection is empty, then nothing happens.
void FirstOrDefault(
Action<TRecord> action,
LockType tableLockType,
LockType recordLockType
)
void FirstOrDefault(
Action<TRecord^>^ action,
LockType tableLockType,
LockType recordLockType
)
Parameters
- action
- The Action to perform on the TRecord record.
- tableLockType
- The TRecord table lock type for the scope of the action.
- recordLockType
- The TRecord record lock type for the scope of the action.