ParallelEnumerable.Concat 方法

定义

连接两个并行序列。

重载

Concat<TSource>(ParallelQuery<TSource>, IEnumerable<TSource>)
已过时。

切勿调用此 Concat 重载。 此方法已标记为过时,调用此方法时总是会引发 NotSupportedException

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

连接两个并行序列。

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

注意

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>

未使用此参数。

返回

ParallelQuery<TSource>

此重载总是会引发 NotSupportedException

属性

例外

调用此方法时发生的异常。

注解

存在此重载以禁止使用具有类型 ParallelQuery<TSource> 左数据源和类型 IEnumerable<T>右侧数据源的 Concat。 否则,Concat 运算符似乎绑定到并行实现,但实际上会绑定到顺序实现。

另请参阅

适用于

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

连接两个并行序列。

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>

要与第一个序列连接的序列。

返回

ParallelQuery<TSource>

一个序列,其中包含两个输入序列的已连接元素。

例外

firstsecond 为 null 引用(在 Visual Basic 中为 Nothing)。

另请参阅

适用于