ParallelEnumerable.AsParallel メソッド

定義

クエリの並列化を有効にします。

オーバーロード

AsParallel(IEnumerable)

クエリの並列化を有効にします。

AsParallel<TSource>(Partitioner<TSource>)

入力シーケンスを複数のパーティションに分割するカスタム パーティショナーによって供給されるクエリの並列化を有効にします。

AsParallel<TSource>(IEnumerable<TSource>)

クエリの並列化を有効にします。

注釈

このメソッドは、クエリを PLINQ にバインドします。 詳細については、「Parallel LINQ (PLINQ)」を参照してください。

AsParallel(IEnumerable)

クエリの並列化を有効にします。

public:
[System::Runtime::CompilerServices::Extension]
 static System::Linq::ParallelQuery ^ AsParallel(System::Collections::IEnumerable ^ source);
public static System.Linq.ParallelQuery AsParallel (this System.Collections.IEnumerable source);
static member AsParallel : System.Collections.IEnumerable -> System.Linq.ParallelQuery
<Extension()>
Public Function AsParallel (source As IEnumerable) As ParallelQuery

パラメーター

source
IEnumerable

ParallelQuery に変換する IEnumerable<T>

戻り値

ParallelEnumerable 拡張メソッドにバインドされる ParallelQuery としての source。

例外

source が null 参照 (Visual Basic では Nothing) です。

注釈

演算子を Cast 使用して、ParallelQuery を ParallelQuery(T) に変換できます。

こちらもご覧ください

適用対象

AsParallel<TSource>(Partitioner<TSource>)

入力シーケンスを複数のパーティションに分割するカスタム パーティショナーによって供給されるクエリの並列化を有効にします。

public:
generic <typename TSource>
[System::Runtime::CompilerServices::Extension]
 static System::Linq::ParallelQuery<TSource> ^ AsParallel(System::Collections::Concurrent::Partitioner<TSource> ^ source);
public static System.Linq.ParallelQuery<TSource> AsParallel<TSource> (this System.Collections.Concurrent.Partitioner<TSource> source);
static member AsParallel : System.Collections.Concurrent.Partitioner<'Source> -> System.Linq.ParallelQuery<'Source>
<Extension()>
Public Function AsParallel(Of TSource) (source As Partitioner(Of TSource)) As ParallelQuery(Of TSource)

型パラメーター

TSource

source の要素の型。

パラメーター

source
Partitioner<TSource>

入力シーケンスに対するパーティショナー。

戻り値

ParallelEnumerable 拡張メソッドにバインドされる ParallelQuery としての source

例外

source が null 参照 (Visual Basic では Nothing) です。

注釈

順序付けが有効な場合はソース パーティショナーの GetOrderedPartitions メソッドが使用されますが、順序が有効になっていない場合はパーティショナーの GetPartitions が使用されます (既定値)。 ソース パーティショナーの GetDynamicPartitions と GetDynamicOrderedPartitions は使用されません。 詳細と例については、「 PLINQ および TPL 用のカスタム パーティショナー」を参照してください。

こちらもご覧ください

適用対象

AsParallel<TSource>(IEnumerable<TSource>)

クエリの並列化を有効にします。

public:
generic <typename TSource>
[System::Runtime::CompilerServices::Extension]
 static System::Linq::ParallelQuery<TSource> ^ AsParallel(System::Collections::Generic::IEnumerable<TSource> ^ source);
public static System.Linq.ParallelQuery<TSource> AsParallel<TSource> (this System.Collections.Generic.IEnumerable<TSource> source);
static member AsParallel : seq<'Source> -> System.Linq.ParallelQuery<'Source>
<Extension()>
Public Function AsParallel(Of TSource) (source As IEnumerable(Of TSource)) As ParallelQuery(Of TSource)

型パラメーター

TSource

source の要素の型。

パラメーター

source
IEnumerable<TSource>

ParallelQuery<TSource> に変換する IEnumerable<T>

戻り値

ParallelEnumerable 拡張メソッドにバインドされる ParallelQuery<TSource> としての source。

例外

source が null 参照 (Visual Basic では Nothing) です。

こちらもご覧ください

適用対象