ParallelEnumerable.Concat 方法

定義

串連兩個平行序列。

多載

Concat<TSource>(ParallelQuery<TSource>, IEnumerable<TSource>)
已淘汰.

永遠不可叫用這個 Concat 多載。 此方法已標記為過時,呼叫它時永遠會擲回 NotSupportedException

Concat<TSource>(ParallelQuery<TSource>, ParallelQuery<TSource>)

串連兩個平行序列。

Concat<TSource>(ParallelQuery<TSource>, IEnumerable<TSource>)

來源:
ParallelEnumerable.cs
來源:
ParallelEnumerable.cs
來源:
ParallelEnumerable.cs

警告

The second data source of a binary operator must be of type System.Linq.ParallelQuery<T> rather than System.Collections.Generic.IEnumerable<T>. To fix this problem, use the AsParallel() extension method to convert the right data source to System.Linq.ParallelQuery<T>.

永遠不可叫用這個 Concat 多載。 此方法已標記為過時,呼叫它時永遠會擲回 NotSupportedException

public:
generic <typename TSource>
[System::Runtime::CompilerServices::Extension]
 static System::Linq::ParallelQuery<TSource> ^ Concat(System::Linq::ParallelQuery<TSource> ^ first, System::Collections::Generic::IEnumerable<TSource> ^ second);
[System.Obsolete("The second data source of a binary operator must be of type System.Linq.ParallelQuery<T> rather than System.Collections.Generic.IEnumerable<T>. To fix this problem, use the AsParallel() extension method to convert the right data source to System.Linq.ParallelQuery<T>.")]
public static System.Linq.ParallelQuery<TSource> Concat<TSource> (this System.Linq.ParallelQuery<TSource> first, System.Collections.Generic.IEnumerable<TSource> second);
[<System.Obsolete("The second data source of a binary operator must be of type System.Linq.ParallelQuery<T> rather than System.Collections.Generic.IEnumerable<T>. To fix this problem, use the AsParallel() extension method to convert the right data source to System.Linq.ParallelQuery<T>.")>]
static member Concat : System.Linq.ParallelQuery<'Source> * seq<'Source> -> System.Linq.ParallelQuery<'Source>
<Extension()>
Public Function Concat(Of TSource) (first As ParallelQuery(Of TSource), second As IEnumerable(Of TSource)) As ParallelQuery(Of TSource)

類型參數

TSource

不使用這個類型參數。

參數

first
ParallelQuery<TSource>

不使用這個參數。

second
IEnumerable<TSource>

不使用這個參數。

傳回

這個多載一定會擲回 NotSupportedException

屬性

例外狀況

當呼叫這個方法時所發生的例外狀況。

備註

此多載存在,不允許使用具有 類型 ParallelQuery<TSource> 左數據源的 Concat,以及類型的 IEnumerable<T>右數據源。 否則,Concat 運算符似乎系結至平行實作,但實際上會系結至循序實作。

另請參閱

適用於

Concat<TSource>(ParallelQuery<TSource>, ParallelQuery<TSource>)

來源:
ParallelEnumerable.cs
來源:
ParallelEnumerable.cs
來源:
ParallelEnumerable.cs

串連兩個平行序列。

public:
generic <typename TSource>
[System::Runtime::CompilerServices::Extension]
 static System::Linq::ParallelQuery<TSource> ^ Concat(System::Linq::ParallelQuery<TSource> ^ first, System::Linq::ParallelQuery<TSource> ^ second);
public static System.Linq.ParallelQuery<TSource> Concat<TSource> (this System.Linq.ParallelQuery<TSource> first, System.Linq.ParallelQuery<TSource> second);
static member Concat : System.Linq.ParallelQuery<'Source> * System.Linq.ParallelQuery<'Source> -> System.Linq.ParallelQuery<'Source>
<Extension()>
Public Function Concat(Of TSource) (first As ParallelQuery(Of TSource), second As ParallelQuery(Of TSource)) As ParallelQuery(Of TSource)

類型參數

TSource

輸入序列之項目的類型。

參數

first
ParallelQuery<TSource>

要串連的第一個序列。

second
ParallelQuery<TSource>

要串連到第一個序列的序列。

傳回

序列,包含兩個輸入序列的串連項目。

例外狀況

firstsecond 為 Null 參考 (在 Visual Basic 中為 Nothing)。

另請參閱

適用於