語言

ParallelEnumerable.Concat 方法

定義

串連兩個平行序列。

多載

名稱 Description
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
來源:
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。

屬性

例外狀況

當此方法被呼叫時,會發生例外。

備註

此過載存在是為了阻止 Concat 在左資料來源 與 ParallelQuery<TSource> 右資料來源 IEnumerable<T>類型 下使用 。 否則,Concat 運算子看似綁定於平行實作,但實際上會綁定於序列實作。

另請參閱

適用於

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

來源:
ParallelEnumerable.cs
來源:
ParallelEnumerable.cs
來源:
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>

該序列將與第一個序列連接起來。

傳回

包含兩個輸入序列串接元素的序列。

例外狀況

first 或 second 是空參考(Nothing in Visual Basic)。

另請參閱

適用於