ParallelEnumerable.Intersect Methode

Definitie

Produceert het set snijpunt van twee parallelle reeksen.

Overloads

Name Description
Intersect<TSource>(ParallelQuery<TSource>, IEnumerable<TSource>, IEqualityComparer<TSource>)
Verouderd.

Deze intersect-overbelasting mag nooit worden aangeroepen. Deze methode wordt gemarkeerd als verouderd en genereert NotSupportedException altijd wanneer deze wordt aangeroepen.

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

Produceert het set snijpunt van twee parallelle reeksen met behulp van de opgegeven IEqualityComparer{T} om waarden te vergelijken.

Intersect<TSource>(ParallelQuery<TSource>, IEnumerable<TSource>)
Verouderd.

Deze intersect-overbelasting mag nooit worden aangeroepen. Deze methode wordt gemarkeerd als verouderd en genereert NotSupportedException altijd wanneer deze wordt aangeroepen.

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

Produceert het set snijpunt van twee parallelle reeksen met behulp van de standaard gelijkheidsgelijker om waarden te vergelijken.

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

Bron:
ParallelEnumerable.cs
Bron:
ParallelEnumerable.cs
Bron:
ParallelEnumerable.cs
Bron:
ParallelEnumerable.cs
Bron:
ParallelEnumerable.cs

Let op

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

Deze intersect-overbelasting mag nooit worden aangeroepen. Deze methode wordt gemarkeerd als verouderd en genereert NotSupportedException altijd wanneer deze wordt aangeroepen.

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)

Type parameters

TSource

Deze typeparameter wordt niet gebruikt.

Parameters

first
ParallelQuery<TSource>

Deze parameter wordt niet gebruikt.

second
IEnumerable<TSource>

Deze parameter wordt niet gebruikt.

comparer
IEqualityComparer<TSource>

Deze parameter wordt niet gebruikt.

Retouren

Deze overbelasting gooit altijd een NotSupportedException.

Kenmerken

Uitzonderingen

De uitzondering die optreedt wanneer deze methode wordt aangeroepen.

Opmerkingen

Deze overbelasting bestaat om het gebruik van Intersect met een linkergegevensbron van het type ParallelQuery<TSource> en een juiste gegevensbron van het type IEnumerable<T>niet toe te laten. Anders lijkt de intersect-operator binding te hebben met de parallelle implementatie, maar zou de sequentiële implementatie in werkelijkheid binden.

Zie ook

Van toepassing op

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

Bron:
ParallelEnumerable.cs
Bron:
ParallelEnumerable.cs
Bron:
ParallelEnumerable.cs
Bron:
ParallelEnumerable.cs
Bron:
ParallelEnumerable.cs

Produceert het set snijpunt van twee parallelle reeksen met behulp van de opgegeven IEqualityComparer{T} om waarden te vergelijken.

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)

Type parameters

TSource

Het type van de elementen van de invoerreeksen.

Parameters

first
ParallelQuery<TSource>

Een reeks waarvan de afzonderlijke elementen die ook worden second weergegeven, worden geretourneerd.

second
ParallelQuery<TSource>

Een reeks waarvan afzonderlijke elementen die ook in de eerste reeks worden weergegeven, worden geretourneerd.

comparer
IEqualityComparer<TSource>

Een IEqualityComparer<T> om waarden te vergelijken.

Retouren

Een reeks die de elementen bevat die het set snijpunt van twee reeksen vormen.

Uitzonderingen

De query is geannuleerd met het token dat is doorgegeven via WithCancellation<TSource>(ParallelQuery<TSource>, CancellationToken).

first of second is een null-verwijzing (niets in Visual Basic).

Er zijn een of meer uitzonderingen opgetreden tijdens de evaluatie van de query.

Zie ook

Van toepassing op

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

Bron:
ParallelEnumerable.cs
Bron:
ParallelEnumerable.cs
Bron:
ParallelEnumerable.cs
Bron:
ParallelEnumerable.cs
Bron:
ParallelEnumerable.cs

Let op

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

Deze intersect-overbelasting mag nooit worden aangeroepen. Deze methode wordt gemarkeerd als verouderd en genereert NotSupportedException altijd wanneer deze wordt aangeroepen.

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)

Type parameters

TSource

Deze typeparameter wordt niet gebruikt.

Parameters

first
ParallelQuery<TSource>

Deze parameter wordt niet gebruikt.

second
IEnumerable<TSource>

Deze parameter wordt niet gebruikt.

Retouren

Deze overbelasting gooit altijd een NotSupportedException.

Kenmerken

Uitzonderingen

De uitzondering die optreedt wanneer deze methode wordt aangeroepen.

Opmerkingen

Deze overbelasting bestaat om het gebruik van Intersect met een linkergegevensbron van het type ParallelQuery<TSource> en een juiste gegevensbron van het type IEnumerable<T>niet toe te laten. Anders lijkt de intersect-operator binding te hebben met de parallelle implementatie, maar zou de sequentiële implementatie in werkelijkheid binden.

Zie ook

Van toepassing op

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

Bron:
ParallelEnumerable.cs
Bron:
ParallelEnumerable.cs
Bron:
ParallelEnumerable.cs
Bron:
ParallelEnumerable.cs
Bron:
ParallelEnumerable.cs

Produceert het set snijpunt van twee parallelle reeksen met behulp van de standaard gelijkheidsgelijker om waarden te vergelijken.

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)

Type parameters

TSource

Het type van de elementen van de invoerreeksen.

Parameters

first
ParallelQuery<TSource>

Een reeks waarvan de afzonderlijke elementen die ook worden second weergegeven, worden geretourneerd.

second
ParallelQuery<TSource>

Een reeks waarvan afzonderlijke elementen die ook in de eerste reeks worden weergegeven, worden geretourneerd.

Retouren

Een reeks die de elementen bevat die het set snijpunt van twee reeksen vormen.

Uitzonderingen

De query is geannuleerd met het token dat is doorgegeven via WithCancellation<TSource>(ParallelQuery<TSource>, CancellationToken).

first of second is een null-verwijzing (niets in Visual Basic).

Er zijn een of meer uitzonderingen opgetreden tijdens de evaluatie van de query.

Zie ook

Van toepassing op