ParallelEnumerable.Concat Yöntem

Tanım

İki paralel diziyi birleştirir.

Aşırı Yüklemeler

Name Description
Concat<TSource>(ParallelQuery<TSource>, IEnumerable<TSource>)
Geçersiz.

Bu Concat aşırı yüklemesi hiçbir zaman çağrılmamalıdır. Bu yöntem eski olarak işaretlenir ve çağrıldığında her zaman atar NotSupportedException .

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

İki paralel diziyi birleştirir.

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

Kaynak:
ParallelEnumerable.cs
Kaynak:
ParallelEnumerable.cs
Kaynak:
ParallelEnumerable.cs
Kaynak:
ParallelEnumerable.cs
Kaynak:
ParallelEnumerable.cs

Dikkat

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

Bu Concat aşırı yüklemesi hiçbir zaman çağrılmamalıdır. Bu yöntem eski olarak işaretlenir ve çağrıldığında her zaman atar 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)

Tür Parametreleri

TSource

Bu tür parametresi kullanılmaz.

Parametreler

first
ParallelQuery<TSource>

Bu parametre kullanılmaz.

second
IEnumerable<TSource>

Bu parametre kullanılmaz.

Döndürülenler

Bu aşırı yükleme her zaman bir NotSupportedExceptionoluşturur.

Öznitelikler

Özel durumlar

Bu yöntem çağrıldığında oluşan özel durum.

Açıklamalar

Bu aşırı yükleme, türü sol veri kaynağı ve türü ParallelQuery<TSource> doğru veri kaynağı olan Concat kullanımına IEnumerable<T>izin vermek için mevcuttur. Aksi takdirde Concat işleci paralel uygulamaya bağlanıyor gibi görünür, ancak gerçekte sıralı uygulamaya bağlanır.

Ayrıca bkz.

Şunlara uygulanır

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

Kaynak:
ParallelEnumerable.cs
Kaynak:
ParallelEnumerable.cs
Kaynak:
ParallelEnumerable.cs
Kaynak:
ParallelEnumerable.cs
Kaynak:
ParallelEnumerable.cs

İki paralel diziyi birleştirir.

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)

Tür Parametreleri

TSource

Giriş dizilerinin öğelerinin türü.

Parametreler

first
ParallelQuery<TSource>

Birleşecek ilk sıra.

second
ParallelQuery<TSource>

İlk diziye birleştirmek için sıra.

Döndürülenler

İki giriş dizisinin birleştirilmiş öğelerini içeren bir dizi.

Özel durumlar

first veya second null başvurudur (Visual Basic hiçbir şey yoktur).

Ayrıca bkz.

Şunlara uygulanır