Partitioner<TSource> Class
Represents a particular manner of splitting a data source into multiple partitions.
Assembly: mscorlib (in mscorlib.dll)
System.Collections.Concurrent::Partitioner<TSource>
System.Collections.Concurrent::OrderablePartitioner<TSource>
| Name | Description | |
|---|---|---|
![]() | Partitioner<TSource>() | Creates a new partitioner instance. |
| Name | Description | |
|---|---|---|
![]() | SupportsDynamicPartitions | Gets whether additional partitions can be created dynamically. |
| Name | Description | |
|---|---|---|
![]() | Equals(Object^) | Determines whether the specified object is equal to the current object.(Inherited from Object.) |
![]() | Finalize() | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from Object.) |
![]() | GetDynamicPartitions() | Creates an object that can partition the underlying collection into a variable number of partitions. |
![]() | GetHashCode() | Serves as the default hash function. (Inherited from Object.) |
![]() | GetPartitions(Int32) | Partitions the underlying collection into the given number of partitions. |
![]() | GetType() | |
![]() | MemberwiseClone() | |
![]() | ToString() | Returns a string that represents the current object.(Inherited from Object.) |
| Name | Description | |
|---|---|---|
![]() | AsParallel<TSource>() | Overloaded. Enables parallelization of a query, as sourced by a custom partitioner that is responsible for splitting the input sequence into partitions.(Defined by ParallelEnumerable.) |
For more information, see Custom Partitioners for PLINQ and TPL.
Available since 8
.NET Framework
Available since 4.0
Portable Class Library
Supported in: portable .NET platforms
Windows Phone
Available since 8.1
The static methods on Partitioner<TSource> are all thread-safe and may be used concurrently from multiple threads. However, while a created partitioner is in use, the underlying data source should not be modified, whether from the same thread that is using a partitioner or from a separate thread.


