語言

OrderablePartitioner<TSource>.GetOrderablePartitions(Int32) 方法

定義

將底層集合分割成指定數量的可排序分割區。

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)))

參數

partitionCount
Int32

要建立的分割區數量。

傳回

一份包含 partitionCount 普查員的名單。

備註

每個分割以按鍵值對的列舉器表示。

這對的值即為元素本身,鍵為整數,用以決定該元素相對於資料來源中其他元素的相對排序。

如需詳細資訊,請參閱 PLINQ 和 TPL 的自定義分割器。

適用於

另請參閱