ParallelEnumerable.Intersect Método

Definição

Produz a interseção de conjunto de duas sequências paralelas.

Sobrecargas

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

Essa sobrecarga Intersect nunca deve ser chamada. Esse método está marcado como obsoleto e sempre gera NotSupportedException quando chamado.

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

Produz a interseção de conjunto de duas sequências paralelas usando o IEqualityComparer{T} especificado para comparar os valores.

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

Essa sobrecarga Intersect nunca deve ser chamada. Esse método está marcado como obsoleto e sempre gera NotSupportedException quando chamado.

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

Produz a interseção de conjunto de duas sequências em paralelo usando o comparador de igualdade padrão para comparar os valores.

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

Cuidado

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

Essa sobrecarga Intersect nunca deve ser chamada. Esse método está marcado como obsoleto e sempre gera NotSupportedException quando chamado.

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)

Parâmetros de tipo

TSource

Esse parâmetro de tipo não é usado.

Parâmetros

first
ParallelQuery<TSource>

Este parâmetro não é usado.

second
IEnumerable<TSource>

Este parâmetro não é usado.

comparer
IEqualityComparer<TSource>

Este parâmetro não é usado.

Retornos

Essa sobrecarga sempre gera um NotSupportedException.

Atributos

Exceções

A exceção que ocorre quando esse método é chamado.

Comentários

Essa sobrecarga existe para não permitir o uso de Intersect com uma fonte de dados esquerda do tipo ParallelQuery<TSource> e uma fonte de dados direita do tipo IEnumerable<T>. Caso contrário, o operador Intersect parece estar associando à implementação paralela, mas, na realidade, associaria à implementação sequencial.

Confira também

Aplica-se a

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

Produz a interseção de conjunto de duas sequências paralelas usando o IEqualityComparer{T} especificado para comparar os valores.

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)

Parâmetros de tipo

TSource

O tipo dos elementos das sequências de entrada.

Parâmetros

first
ParallelQuery<TSource>

A sequência cujos elementos distintos que também são exibidos em second será retornada.

second
ParallelQuery<TSource>

Uma sequência cujos elementos distintos que também são exibidos na primeira sequência serão retornados.

comparer
IEqualityComparer<TSource>

Um IEqualityComparer<T> para comparar valores.

Retornos

Uma sequência que contém os elementos que formam a interseção de conjunto de duas sequências.

Exceções

source ou action é uma referência nula (Nothing no Visual Basic).

Uma ou mais exceções ocorreram durante a avaliação da consulta.

Confira também

Aplica-se a

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

Cuidado

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

Essa sobrecarga Intersect nunca deve ser chamada. Esse método está marcado como obsoleto e sempre gera NotSupportedException quando chamado.

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)

Parâmetros de tipo

TSource

Esse parâmetro de tipo não é usado.

Parâmetros

first
ParallelQuery<TSource>

Este parâmetro não é usado.

second
IEnumerable<TSource>

Este parâmetro não é usado.

Retornos

Essa sobrecarga sempre gera um NotSupportedException.

Atributos

Exceções

A exceção que ocorre quando esse método é chamado.

Comentários

Essa sobrecarga existe para não permitir o uso de Intersect com uma fonte de dados esquerda do tipo ParallelQuery<TSource> e uma fonte de dados direita do tipo IEnumerable<T>. Caso contrário, o operador Intersect parece estar associando à implementação paralela, mas, na realidade, associaria à implementação sequencial.

Confira também

Aplica-se a

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

Produz a interseção de conjunto de duas sequências em paralelo usando o comparador de igualdade padrão para comparar os valores.

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)

Parâmetros de tipo

TSource

O tipo dos elementos das sequências de entrada.

Parâmetros

first
ParallelQuery<TSource>

A sequência cujos elementos distintos que também são exibidos em second será retornada.

second
ParallelQuery<TSource>

Uma sequência cujos elementos distintos que também são exibidos na primeira sequência serão retornados.

Retornos

Uma sequência que contém os elementos que formam a interseção de conjunto de duas sequências.

Exceções

source ou action é uma referência nula (Nothing no Visual Basic).

Uma ou mais exceções ocorreram durante a avaliação da consulta.

Confira também

Aplica-se a