Aggregate<TAccumulate> Method (IFilteredRecordCollection<TRecord>)
- Last UpdatedApr 08, 2026
- 1 minute read
Applies an accumulator function over all TRecord records by ascending IRecord.RecordNumber. The specified seed value is used as the initial accumulator value. This is identical to Aggregate.
TAccumulate Aggregate<TAccumulate>(
TAccumulate seed,
Func<TAccumulate,TRecord,TAccumulate> function,
LockType tableLockType,
LockType recordLockType
)
TAccumulate^ Aggregategeneric<typename TAccumulate>
(
TAccumulate^ seed,
Func<TAccumulate^,TRecord^,TAccumulate^>^ function,
LockType tableLockType,
LockType recordLockType
)
Parameters
- seed
- The initial accumulator value.
- function
- An accumulator function to be invoked on each element.
- tableLockType
- The TRecord table lock type for the scope of the entire aggregation.
- recordLockType
- The TRecord record lock type for the scope of evaluating the function on each record.
Type Parameters
- TAccumulate
- The type of the accumulator value.
Return Value
The final accumulator value.