Partitioner<TSource>.GetDynamicPartitions Partitioner<TSource>.GetDynamicPartitions Partitioner<TSource>.GetDynamicPartitions Partitioner<TSource>.GetDynamicPartitions Method

定義

建立物件,這個物件可將基礎集合分割為數量不定的幾個部分。Creates an object that can partition the underlying collection into a variable number of partitions.

public:
 virtual System::Collections::Generic::IEnumerable<TSource> ^ GetDynamicPartitions();
public virtual System.Collections.Generic.IEnumerable<TSource> GetDynamicPartitions ();
abstract member GetDynamicPartitions : unit -> seq<'Source>
override this.GetDynamicPartitions : unit -> seq<'Source>
Public Overridable Function GetDynamicPartitions () As IEnumerable(Of TSource)

傳回

IEnumerable<TSource>

可針對基礎資料來源建立分割的物件。An object that can create partitions over the underlying data source.

例外狀況

基底類別不支援動態資料分割。Dynamic partitioning is not supported by the base class. 您必須在衍生類別中實作它。You must implement it in a derived class.

備註

傳回的物件會實System.Collections.Generic.IEnumerable<T>作為介面。The returned object implements the System.Collections.Generic.IEnumerable<T> interface. GetEnumerator物件上呼叫, 會在序列上建立另一個資料分割。Calling GetEnumerator on the object creates another partition over the sequence.

只有GetDynamicPartitionsSupportsDynamicPartitions屬性傳回 true 時, 才支援方法。The GetDynamicPartitions method is only supported if the SupportsDynamicPartitions property returns true. 如需詳細資訊,請參閱 PLINQ 和 TPL 的自訂 PartitionerFor more information, see Custom Partitioners for PLINQ and TPL.

適用於

另請參閱