Windows apps
Collapse the table of content
Expand the table of content
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.

EnumerablePartitionerOptions Enumeration

.NET Framework (current version)

The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

Specifies options to control the buffering behavior of a partitioner

This enumeration has a FlagsAttribute attribute that allows a bitwise combination of its member values.

Namespace:   System.Collections.Concurrent
Assembly:  mscorlib (in mscorlib.dll)

public enum EnumerablePartitionerOptions

Member nameDescription

Create a partitioner that takes items from the source enumerable one at a time and does not use intermediate storage that can be accessed more efficiently by multiple threads. This option provides support for low latency (items will be processed as soon as they are available from the source) and provides partial support for dependencies between items (a thread cannot deadlock waiting for an item that the thread itself is responsible for processing).


Use the default behavior, which is to use buffering to achieve optimal performance.

Out-of-the-box partitioners are created with a set of default behaviors. For example, by default, some form of buffering and chunking will be used to achieve optimal performance in the common scenario where an IEnumerable<T> implementation is fast and non-blocking. These behaviors can be overridden by this enumeration by using the Partitioner.Create<TSource> method.

Universal Windows Platform
Available since 8
.NET Framework
Available since 4.5
Portable Class Library
Supported in: portable .NET platforms
Windows Phone
Available since 8.1
Return to top
© 2017 Microsoft