Attach<TResult>(Int32,Func<TRecord,TResult>,LockType,LockType) Method
- Last UpdatedApr 08, 2026
- 1 minute read
Performs the function on a single record specified by a IRecord.RecordNumber matching the ptNum by attaching to a locked record rather than locking it.
TResult Attach<TResult>(
int ptNum,
Func<TRecord,TResult> function,
LockType tableLockType,
LockType recordLockType
)
TResult^ Attachgeneric<typename TResult>
(
int ptNum,
Func<TRecord^,TResult^>^ function,
LockType tableLockType,
LockType recordLockType
)
Parameters
- ptNum
- The IRecord.RecordNumber of the record.
- function
- The Func to perform on the record.
- tableLockType
- The lock type that already exists on the table.
- recordLockType
- The lock type that already exists on the record.
Type Parameters
- TResult
Return Value
The result from function.