ParallelEnumerable.Concat Metod

Definition

Sammanfogar två parallella sekvenser.

Överlagringar

Name Description
Concat<TSource>(ParallelQuery<TSource>, IEnumerable<TSource>)
Föråldrad.

Den här Concat-överlagringen bör aldrig anropas. Den här metoden är markerad som föråldrad och genererar alltid när den anropas NotSupportedException .

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

Sammanfogar två parallella sekvenser.

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

Varning

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

Den här Concat-överlagringen bör aldrig anropas. Den här metoden är markerad som föråldrad och genererar alltid när den anropas 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)

Typparametrar

TSource

Den här typparametern används inte.

Parametrar

first
ParallelQuery<TSource>

Den här parametern används inte.

second
IEnumerable<TSource>

Den här parametern används inte.

Returer

Den här överlagringen genererar alltid en NotSupportedException.

Attribut

Undantag

Undantaget som inträffar när den här metoden anropas.

Kommentarer

Den här överlagringen finns för att inte tillåta användning av Concat med en vänster datakälla av typen ParallelQuery<TSource> och en rätt datakälla av typen IEnumerable<T>. Annars verkar Concat-operatorn vara bindande för den parallella implementeringen, men skulle i själva verket binda till den sekventiella implementeringen.

Se även

Gäller för

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

Sammanfogar två parallella sekvenser.

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)

Typparametrar

TSource

Typ av element i indatasekvenserna.

Parametrar

first
ParallelQuery<TSource>

Den första sekvensen som sammanfogas.

second
ParallelQuery<TSource>

Sekvensen som ska sammanfogas till den första sekvensen.

Returer

En sekvens som innehåller de sammanfogade elementen i de två indatasekvenserna.

Undantag

first eller second är en nullreferens (ingenting i Visual Basic).

Se även

Gäller för