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 的自訂 Partitioner

適用於

另請參閱