ParallelEnumerable.Concat Metoda

Definicja

Łączy dwie sekwencje równoległe.

Przeciążenia

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

To przeciążenie concat nigdy nie powinno być wywoływane. Ta metoda jest oznaczona jako przestarzała i zawsze zgłaszana NotSupportedException po wywołaniu.

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

Łączy dwie sekwencje równoległe.

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

Przestroga

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

To przeciążenie concat nigdy nie powinno być wywoływane. Ta metoda jest oznaczona jako przestarzała i zawsze zgłaszana NotSupportedException po wywołaniu.

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

Ten parametr typu nie jest używany.

Parametry

first
ParallelQuery<TSource>

Ten parametr nie jest używany.

second
IEnumerable<TSource>

Ten parametr nie jest używany.

Zwraca

ParallelQuery<TSource>

To przeciążenie zawsze zgłasza błąd NotSupportedException.

Atrybuty

Wyjątki

Wyjątek, który występuje, gdy jest wywoływana ta metoda.

Uwagi

To przeciążenie istnieje, aby uniemożliwić użycie interfejsu Concat z lewym źródłem danych typu ParallelQuery<TSource> i właściwym źródłem danych typu IEnumerable<T>. W przeciwnym razie operator Concat wydaje się wiązać z implementacją równoległą, ale w rzeczywistości wiązałby się z implementacją sekwencyjną.

Zobacz też

Dotyczy

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

Łączy dwie sekwencje równoległe.

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 elementów sekwencji wejściowych.

Parametry

first
ParallelQuery<TSource>

Pierwsza sekwencja do połączenia.

second
ParallelQuery<TSource>

Sekwencja łączenia z pierwszą sekwencją.

Zwraca

ParallelQuery<TSource>

Sekwencja zawierająca łączone elementy dwóch sekwencji wejściowych.

Wyjątki

firstlub second jest odwołaniem o wartości null (nic w Visual Basic).

Zobacz też

Dotyczy