語言

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 的自定義分割器。

適用於

另請參閱