Partitioner<TSource>.GetPartitions(Int32) 메서드

정의

기본 컬렉션을 지정된 개수의 파티션으로 분할합니다.

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

매개 변수

partitionCount
Int32

만들 파티션의 수입니다.

반환

IList<IEnumerator<TSource>>

partitionCount 열거자가 포함된 목록입니다.

설명

이 메서드를 구현하는 클래스는 에 partitionCount지정된 파티션 수를 정확히 반환해야 합니다. 파티션에 요소가 없는 경우 null이 아닌 빈 열거자를 반환합니다(Visual Basic에서는 Nothing). 자세한 내용은 PLINQ 및 TPL에 대한 사용자 지정 파티셔너를 참조하세요.

적용 대상

추가 정보