ParallelEnumerable.ToArray<TSource>(ParallelQuery<TSource>) メソッド
定義
ParallelQuery<TSource> から配列を作成します。Creates an array from a ParallelQuery<TSource>.
public:
generic <typename TSource>
[System::Runtime::CompilerServices::Extension]
static cli::array <TSource> ^ ToArray(System::Linq::ParallelQuery<TSource> ^ source);
public static TSource[] ToArray<TSource> (this System.Linq.ParallelQuery<TSource> source);
static member ToArray : System.Linq.ParallelQuery<'Source> -> 'Source[]
<Extension()>
Public Function ToArray(Of TSource) (source As ParallelQuery(Of TSource)) As TSource()
型パラメーター
- TSource
source
の要素の型。The type of the elements of source
.
パラメーター
- source
- ParallelQuery<TSource>
配列の作成元のシーケンス。A sequence to create an array from.
戻り値
TSource[]
入力シーケンスの要素を含む配列。An array that contains the elements from the input sequence.
例外
WithCancellation
経由で渡されたトークンで、クエリが取り消されました。The query was canceled with the token passed in through WithCancellation
.
source
が null 参照 (Visual Basic では Nothing) です。source
is a null reference (Nothing in Visual Basic).
クエリ評価中に 1 つまたは複数の例外が発生しました。One or more exceptions occurred during the evaluation of the query.