ParallelEnumerable.Concat Metoda

Definice

Zřetězí dvě paralelní sekvence.

Přetížení

Concat<TSource>(ParallelQuery<TSource>, IEnumerable<TSource>)
Zastaralé.

Toto přetížení Concat by se nikdy nemělo volat. Tato metoda je označena jako zastaralá a při zavolání NotSupportedException vždy vyvolá.

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

Zřetězí dvě paralelní sekvence.

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

Zdroj:
ParallelEnumerable.cs
Zdroj:
ParallelEnumerable.cs
Zdroj:
ParallelEnumerable.cs

Upozornění

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>.

Toto přetížení Concat by se nikdy nemělo volat. Tato metoda je označena jako zastaralá a při zavolání NotSupportedException vždy vyvolá.

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)

Parametry typu

TSource

Tento parametr typu se nepoužívá.

Parametry

first
ParallelQuery<TSource>

Tento parametr není používán.

second
IEnumerable<TSource>

Tento parametr není používán.

Návraty

Toto přetížení vždy vyvolá NotSupportedException.

Atributy

Výjimky

Výjimka, ke které dochází při zavolání této metody.

Poznámky

Toto přetížení znemožní použití Concatu s levým zdrojem dat typu ParallelQuery<TSource> a správným zdrojem dat typu IEnumerable<T>. Jinak by se zdá, že operátor Concat je vázán na paralelní implementaci, ale ve skutečnosti by se vázal na sekvenční implementaci.

Viz také

Platí pro

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

Zdroj:
ParallelEnumerable.cs
Zdroj:
ParallelEnumerable.cs
Zdroj:
ParallelEnumerable.cs

Zřetězí dvě paralelní sekvence.

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)

Parametry typu

TSource

Typ prvků vstupních sekvencí.

Parametry

first
ParallelQuery<TSource>

První sekvence, která se zřetědí.

second
ParallelQuery<TSource>

Sekvence, která se má zřetězení s první sekvencí.

Návraty

Sekvence, která obsahuje zřetězené prvky dvou vstupních sekvencí.

Výjimky

first nebo second je odkaz s hodnotou null (v jazyce Visual Basic není nic).

Viz také

Platí pro