Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

OrderablePartitioner<TSource>.GetOrderablePartitions(Int32) Method

Definition

Namespace:
System.Collections.Concurrent
Assemblies:
mscorlib.dll, System.Collections.Concurrent.dll
Assemblies:
netstandard.dll, System.Collections.Concurrent.dll
Assembly:
System.Collections.Concurrent.dll
Assembly:
mscorlib.dll
Assembly:
netstandard.dll
Source:
OrderablePartitioner.cs
Source:
OrderablePartitioner.cs
Source:
OrderablePartitioner.cs
Source:
OrderablePartitioner.cs
Source:
OrderablePartitioner.cs

Important

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

Partitions the underlying collection into the specified number of orderable partitions.

public:
 abstract System::Collections::Generic::IList<System::Collections::Generic::IEnumerator<System::Collections::Generic::KeyValuePair<long, TSource>> ^> ^ GetOrderablePartitions(int partitionCount);
public abstract System.Collections.Generic.IList<System.Collections.Generic.IEnumerator<System.Collections.Generic.KeyValuePair<long,TSource>>> GetOrderablePartitions(int partitionCount);
abstract member GetOrderablePartitions : int -> System.Collections.Generic.IList<System.Collections.Generic.IEnumerator<System.Collections.Generic.KeyValuePair<int64, 'Source>>>
Public MustOverride Function GetOrderablePartitions (partitionCount As Integer) As IList(Of IEnumerator(Of KeyValuePair(Of Long, TSource)))

Parameters

partitionCount
Int32

The number of partitions to create.

Returns

A list containing partitionCount enumerators.

Remarks

Each partition is represented as an enumerator over key-value pairs.

The value of the pair is the element itself, and the key is an integer which determines the relative ordering of this element against other elements in the data source.

For more information, see Custom Partitioners for PLINQ and TPL.

Applies to

See also


Feedback

Was this page helpful?