ParallelEnumerable.Concat Metodo

Definizione

Concatena due sequenze parallele.

Overload

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

Questo overload di Concat non dovrebbe mai essere chiamato. Questo metodo è contrassegnato come obsoleto e genera sempre NotSupportedException quando viene chiamato.

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

Concatena due sequenze parallele.

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

Attenzione

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

Questo overload di Concat non dovrebbe mai essere chiamato. Questo metodo è contrassegnato come obsoleto e genera sempre NotSupportedException quando viene chiamato.

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)

Parametri di tipo

TSource

Questo parametro di tipo non viene usato.

Parametri

first
ParallelQuery<TSource>

Questo parametro non viene usato.

second
IEnumerable<TSource>

Questo parametro non viene usato.

Restituisce

ParallelQuery<TSource>

Questo overload genera sempre NotSupportedException.

Attributi

Eccezioni

Eccezione che si verifica quando viene chiamato questo metodo.

Commenti

Questo overload esiste per impedire l'utilizzo di Concat con un'origine dati sinistra di tipo ParallelQuery<TSource> e un'origine dati destra di tipo IEnumerable<T>. In caso contrario, l'operatore Concat sembra essere associato all'implementazione parallela, ma in realtà si associa all'implementazione sequenziale.

Vedi anche

Si applica a

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

Concatena due sequenze parallele.

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)

Parametri di tipo

TSource

Tipo degli elementi delle sequenze di input.

Parametri

first
ParallelQuery<TSource>

Prima sequenza da concatenare.

second
ParallelQuery<TSource>

Sequenza da concatenare alla prima sequenza.

Restituisce

ParallelQuery<TSource>

Sequenza che contiene gli elementi concatenati delle due sequenze di input.

Eccezioni

first o second è un riferimento Null (Nothing in Visual Basic).

Vedi anche

Si applica a