OrderablePartitioner<TSource>.GetPartitions(Int32) メソッド

定義

基になるコレクションを、指定された数の順序付けられたパーティションにパーティション分割します。

public:
 override System::Collections::Generic::IList<System::Collections::Generic::IEnumerator<TSource> ^> ^ GetPartitions(int partitionCount);
public override System.Collections.Generic.IList<System.Collections.Generic.IEnumerator<TSource>> GetPartitions(int partitionCount);
override this.GetPartitions : int -> System.Collections.Generic.IList<System.Collections.Generic.IEnumerator<'Source>>
Public Overrides Function GetPartitions (partitionCount As Integer) As IList(Of IEnumerator(Of TSource))

パラメーター

partitionCount
Int32

作成するパーティションの数。

返品

IList<IEnumerator<TSource>>

partitionCount列挙子を含むリスト。

注釈

既定の実装では、 GetOrderablePartitions と同じ動作が提供されます。ただし、返される一連のパーティションでは要素のキーが提供されません。

詳細については、「 PLINQ と TPL のカスタム パーティショナー」を参照してください。

適用対象

こちらもご覧ください