Share via


ParallelEnumerable.Intersect Metoda

Definice

Vytvoří množinu průniku dvou paralelních sekvencí.

Přetížení

Intersect<TSource>(ParallelQuery<TSource>, IEnumerable<TSource>, IEqualityComparer<TSource>)
Zastaralé.

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

Intersect<TSource>(ParallelQuery<TSource>, ParallelQuery<TSource>, IEqualityComparer<TSource>)

Vytvoří průnik sady dvou paralelních sekvencí pomocí zadaného IEqualityComparer{T} k porovnání hodnot.

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

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

Intersect<TSource>(ParallelQuery<TSource>, ParallelQuery<TSource>)

Vytvoří množinu průniku dvou paralelních sekvencí pomocí výchozího porovnávače rovnosti k porovnání hodnot.

Intersect<TSource>(ParallelQuery<TSource>, IEnumerable<TSource>, IEqualityComparer<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í intersect 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> ^ Intersect(System::Linq::ParallelQuery<TSource> ^ first, System::Collections::Generic::IEnumerable<TSource> ^ second, System::Collections::Generic::IEqualityComparer<TSource> ^ comparer);
[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> Intersect<TSource> (this System.Linq.ParallelQuery<TSource> first, System.Collections.Generic.IEnumerable<TSource> second, System.Collections.Generic.IEqualityComparer<TSource> comparer);
[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> Intersect<TSource> (this System.Linq.ParallelQuery<TSource> first, System.Collections.Generic.IEnumerable<TSource> second, System.Collections.Generic.IEqualityComparer<TSource>? comparer);
[<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 Intersect : System.Linq.ParallelQuery<'Source> * seq<'Source> * System.Collections.Generic.IEqualityComparer<'Source> -> System.Linq.ParallelQuery<'Source>
<Extension()>
Public Function Intersect(Of TSource) (first As ParallelQuery(Of TSource), second As IEnumerable(Of TSource), comparer As IEqualityComparer(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.

comparer
IEqualityComparer<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í intersectu s levým zdrojem dat typu ParallelQuery<TSource> a správným zdrojem dat typu IEnumerable<T>. Jinak by se operátor Intersect zdál být vázán na paralelní implementaci, ale ve skutečnosti by se vázal na sekvenční implementaci.

Viz také

Platí pro

Intersect<TSource>(ParallelQuery<TSource>, ParallelQuery<TSource>, IEqualityComparer<TSource>)

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

Vytvoří průnik sady dvou paralelních sekvencí pomocí zadaného IEqualityComparer{T} k porovnání hodnot.

public:
generic <typename TSource>
[System::Runtime::CompilerServices::Extension]
 static System::Linq::ParallelQuery<TSource> ^ Intersect(System::Linq::ParallelQuery<TSource> ^ first, System::Linq::ParallelQuery<TSource> ^ second, System::Collections::Generic::IEqualityComparer<TSource> ^ comparer);
public static System.Linq.ParallelQuery<TSource> Intersect<TSource> (this System.Linq.ParallelQuery<TSource> first, System.Linq.ParallelQuery<TSource> second, System.Collections.Generic.IEqualityComparer<TSource> comparer);
public static System.Linq.ParallelQuery<TSource> Intersect<TSource> (this System.Linq.ParallelQuery<TSource> first, System.Linq.ParallelQuery<TSource> second, System.Collections.Generic.IEqualityComparer<TSource>? comparer);
static member Intersect : System.Linq.ParallelQuery<'Source> * System.Linq.ParallelQuery<'Source> * System.Collections.Generic.IEqualityComparer<'Source> -> System.Linq.ParallelQuery<'Source>
<Extension()>
Public Function Intersect(Of TSource) (first As ParallelQuery(Of TSource), second As ParallelQuery(Of TSource), comparer As IEqualityComparer(Of TSource)) As ParallelQuery(Of TSource)

Parametry typu

TSource

Typ prvků vstupních sekvencí.

Parametry

first
ParallelQuery<TSource>

Vrátí se sekvence, jejíž jedinečné prvky se také zobrazují v second .

second
ParallelQuery<TSource>

Vrátí se sekvence, jejíž jedinečné prvky, které se také zobrazují v první sekvenci.

comparer
IEqualityComparer<TSource>

An IEqualityComparer<T> pro porovnání hodnot.

Návraty

Sekvence, která obsahuje prvky, které tvoří množinu průniku dvou sekvencí.

Výjimky

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

Během vyhodnocování dotazu došlo k jedné nebo více výjimkám.

Viz také

Platí pro

Intersect<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í intersect 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> ^ Intersect(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> Intersect<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 Intersect : System.Linq.ParallelQuery<'Source> * seq<'Source> -> System.Linq.ParallelQuery<'Source>
<Extension()>
Public Function Intersect(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í intersectu s levým zdrojem dat typu ParallelQuery<TSource> a správným zdrojem dat typu IEnumerable<T>. Jinak by se operátor Intersect zdál být vázán na paralelní implementaci, ale ve skutečnosti by se vázal na sekvenční implementaci.

Viz také

Platí pro

Intersect<TSource>(ParallelQuery<TSource>, ParallelQuery<TSource>)

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

Vytvoří množinu průniku dvou paralelních sekvencí pomocí výchozího porovnávače rovnosti k porovnání hodnot.

public:
generic <typename TSource>
[System::Runtime::CompilerServices::Extension]
 static System::Linq::ParallelQuery<TSource> ^ Intersect(System::Linq::ParallelQuery<TSource> ^ first, System::Linq::ParallelQuery<TSource> ^ second);
public static System.Linq.ParallelQuery<TSource> Intersect<TSource> (this System.Linq.ParallelQuery<TSource> first, System.Linq.ParallelQuery<TSource> second);
static member Intersect : System.Linq.ParallelQuery<'Source> * System.Linq.ParallelQuery<'Source> -> System.Linq.ParallelQuery<'Source>
<Extension()>
Public Function Intersect(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>

Vrátí se sekvence, jejíž jedinečné prvky se také zobrazují v second .

second
ParallelQuery<TSource>

Vrátí se sekvence, jejíž jedinečné prvky, které se také zobrazují v první sekvenci.

Návraty

Sekvence, která obsahuje prvky, které tvoří množinu průniku dvou sekvencí.

Výjimky

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

Během vyhodnocování dotazu došlo k jedné nebo více výjimkám.

Viz také

Platí pro