ParallelEnumerable.Intersect Metoda
Definice
Důležité
Některé informace platí pro předběžně vydaný produkt, který se může zásadně změnit, než ho výrobce nebo autor vydá. Microsoft neposkytuje žádné záruky, výslovné ani předpokládané, týkající se zde uváděných informací.
Vytvoří průnik množiny dvou paralelních sekvencí.
Přetížení
| Name | Description |
|---|---|
| Intersect<TSource>(ParallelQuery<TSource>, IEnumerable<TSource>, IEqualityComparer<TSource>) |
Zastaralé.
Toto přetížení průniku by se nikdy nemělo volat. Tato metoda je označena jako zastaralá a při zavolání vždy vyvolá NotSupportedException . |
| Intersect<TSource>(ParallelQuery<TSource>, ParallelQuery<TSource>, IEqualityComparer<TSource>) |
Vytvoří průnik množiny dvou paralelních sekvencí pomocí zadaného IEqualityComparer{T} k porovnání hodnot. |
| Intersect<TSource>(ParallelQuery<TSource>, IEnumerable<TSource>) |
Zastaralé.
Toto přetížení průniku by se nikdy nemělo volat. Tato metoda je označena jako zastaralá a při zavolání vždy vyvolá NotSupportedException . |
| Intersect<TSource>(ParallelQuery<TSource>, ParallelQuery<TSource>) |
Vytvoří průnik sady 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
- 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í průniku by se nikdy nemělo volat. Tato metoda je označena jako zastaralá a při zavolání vždy vyvolá NotSupportedException .
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, která nastane při zavolání této metody.
Poznámky
Toto přetížení existuje k zakázání použití Intersect s levým zdrojem dat typu ParallelQuery<TSource> a správným zdrojem dat typu IEnumerable<T>. V opačném případě by se operátor Intersect zdá být vazbou na paralelní implementaci, ale ve skutečnosti by se sváže s sekvenční implementací.
Viz také
Platí pro
Intersect<TSource>(ParallelQuery<TSource>, ParallelQuery<TSource>, IEqualityComparer<TSource>)
- Zdroj:
- ParallelEnumerable.cs
- Zdroj:
- ParallelEnumerable.cs
- Zdroj:
- ParallelEnumerable.cs
- Zdroj:
- ParallelEnumerable.cs
- Zdroj:
- ParallelEnumerable.cs
Vytvoří průnik množiny 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íž second jedinečné prvky se také objeví.
- second
- ParallelQuery<TSource>
Vrátí se sekvence, jejíž jedinečné prvky se zobrazí také v první sekvenci.
- comparer
- IEqualityComparer<TSource>
Hodnota IEqualityComparer<T> pro porovnání hodnot.
Návraty
Sekvence, která obsahuje prvky, které tvoří průnik množiny dvou sekvencí.
Výjimky
Dotaz byl zrušen tokenem předaným prostřednictvím WithCancellation<TSource>(ParallelQuery<TSource>, CancellationToken).
first nebo second je nulový odkaz (nic v Visual Basic).
Během vyhodnocení 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
- 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í průniku by se nikdy nemělo volat. Tato metoda je označena jako zastaralá a při zavolání vždy vyvolá NotSupportedException .
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, která nastane při zavolání této metody.
Poznámky
Toto přetížení existuje k zakázání použití Intersect s levým zdrojem dat typu ParallelQuery<TSource> a správným zdrojem dat typu IEnumerable<T>. V opačném případě by se operátor Intersect zdá být vazbou na paralelní implementaci, ale ve skutečnosti by se sváže s sekvenční implementací.
Viz také
Platí pro
Intersect<TSource>(ParallelQuery<TSource>, ParallelQuery<TSource>)
- Zdroj:
- ParallelEnumerable.cs
- Zdroj:
- ParallelEnumerable.cs
- Zdroj:
- ParallelEnumerable.cs
- Zdroj:
- ParallelEnumerable.cs
- Zdroj:
- ParallelEnumerable.cs
Vytvoří průnik sady 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íž second jedinečné prvky se také objeví.
- second
- ParallelQuery<TSource>
Vrátí se sekvence, jejíž jedinečné prvky se zobrazí také v první sekvenci.
Návraty
Sekvence, která obsahuje prvky, které tvoří průnik množiny dvou sekvencí.
Výjimky
Dotaz byl zrušen tokenem předaným prostřednictvím WithCancellation<TSource>(ParallelQuery<TSource>, CancellationToken).
first nebo second je nulový odkaz (nic v Visual Basic).
Během vyhodnocení dotazu došlo k jedné nebo více výjimkám.