First<TResult>(Func<TRecord,TResult>,LockType,LockType) Method
- Last UpdatedApr 08, 2026
- 1 minute read
Performs the function on the first record in the collection, ordered by ascending IRecord.RecordNumber and returns the result.
TResult First<TResult>(
Func<TRecord,TResult> function,
LockType tableLockType,
LockType recordLockType
)
TResult^ Firstgeneric<typename TResult>
(
Func<TRecord^,TResult^>^ function,
LockType tableLockType,
LockType recordLockType
)
Parameters
- function
- The Func to perform on the TRecord record.
- tableLockType
- The TRecord table lock type for the scope of the function.
- recordLockType
- The TRecord record lock type for the scope of the function.
Type Parameters
- TResult
- The return type.
Return Value
The result of function.
| Exception | Description |
|---|---|
| OASySDNA.RealTime.Data.Common.Exceptions.RecordNotFoundException | If the collection is empty. |