OrderablePartitioner<TSource>.GetOrderablePartitions(Int32) Method
Definition
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
https://aka.ms/ContentUserFeedback.
Kommer snart: I hele 2024 udfaser vi GitHub-problemer som feedbackmekanisme for indhold og erstatter det med et nyt feedbacksystem. Du kan få flere oplysninger under:Indsend og få vist feedback om