The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.
BatchBlock<T> Constructor (Int32, GroupingDataflowBlockOptions^)
Initializes a new BatchBlock<T> with the specified batch size, declining option, and block options.
Assembly: System.Threading.Tasks.Dataflow (in System.Threading.Tasks.Dataflow.dll)
Parameters
- batchSize
-
Type:
System::Int32
The number of items to group into a batch.
- dataflowBlockOptions
-
Type:
System.Threading.Tasks.Dataflow::GroupingDataflowBlockOptions^
The options with which to configure this BatchBlock<T>.
| Exception | Condition |
|---|---|
| ArgumentOutOfRangeException | The batchSize must be positive. -or- The batchSize must be smaller than the value of the BoundedCapacity option if a non-default value has been set. |
| ArgumentNullException | The dataflowBlockOptions is null. |
Show: