BatchBlock<T>.BatchSize Property

.NET Framework (current version)

Gets the size of the batches generated by this BatchBlock<T>.

Namespace:  System.Threading.Tasks.Dataflow
Assembly:  System.Threading.Tasks.Dataflow (in System.Threading.Tasks.Dataflow.dll)

public int BatchSize { get; }

Property Value

Type: System.Int32
The batch size.

If the number of items provided to the block is not evenly divisible by the batch size provided to the block's constructor, the block's final batch may contain fewer than the requested number of items.

.NET Framework

Supported in: 4.5

Portable Class Library

Supported in: Portable Class Library