ParallelEnumerable.ToList<TSource>(ParallelQuery<TSource>) メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
List<T>から ParallelQuery<TSource> を作成します。
public:
generic <typename TSource>
[System::Runtime::CompilerServices::Extension]
static System::Collections::Generic::List<TSource> ^ ToList(System::Linq::ParallelQuery<TSource> ^ source);
public static System.Collections.Generic.List<TSource> ToList<TSource>(this System.Linq.ParallelQuery<TSource> source);
static member ToList : System.Linq.ParallelQuery<'Source> -> System.Collections.Generic.List<'Source>
<Extension()>
Public Function ToList(Of TSource) (source As ParallelQuery(Of TSource)) As List(Of TSource)
型パラメーター
- TSource
sourceの要素の型。
パラメーター
- source
- ParallelQuery<TSource>
List<T>を作成するシーケンス。
返品
入力シーケンスの要素を含む List<T> 。
例外
クエリは、 WithCancellation<TSource>(ParallelQuery<TSource>, CancellationToken)を介して渡されたトークンで取り消されました。
source は null 参照です (Visual Basicでは Nothing)。
クエリの評価中に 1 つ以上の例外が発生しました。