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
Исходный код:
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 является пустой ссылкой (Нет в Visual Basic).

См. также раздел

Применяется к