SingleOrNone<TResult>(Int32,Func<TRecord,TResult>,LockType,LockType) Method
- Last UpdatedApr 08, 2026
- 1 minute read
Optional<TResult> SingleOrNone<TResult>(
int recordNumber,
Func<TRecord,TResult> function,
LockType tableLockType,
LockType recordLockType
)
Optional<TResult^> SingleOrNonegeneric<typename TResult>
(
int recordNumber,
Func<TRecord^,TResult^>^ function,
LockType tableLockType,
LockType recordLockType
)
Parameters
- recordNumber
- The IRecord.RecordNumber of the record.
- function
- The Func to perform on the 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
Return Value
The result of function if a record was found; otherwise None.