ParallelEnumerable.Intersect Метод

Определение

Создает набор пересечения двух параллельных последовательностей.

Перегрузки

Имя Описание
Intersect<TSource>(ParallelQuery<TSource>, IEnumerable<TSource>, IEqualityComparer<TSource>)
Устаревшие..

Эту перегрузку intersect никогда не следует вызывать. Этот метод помечается как устаревший и всегда вызывается NotSupportedException при вызове.

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

Создает набор пересечения двух параллельных последовательностей с помощью указанного IEqualityComparer{T} для сравнения значений.

Intersect<TSource>(ParallelQuery<TSource>, IEnumerable<TSource>)
Устаревшие..

Эту перегрузку intersect никогда не следует вызывать. Этот метод помечается как устаревший и всегда вызывается NotSupportedException при вызове.

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

Создает набор пересечения двух параллельных последовательностей с помощью сравнения значений по умолчанию.

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

Исходный код:
ParallelEnumerable.cs
Исходный код:
ParallelEnumerable.cs
Исходный код:
ParallelEnumerable.cs
Исходный код:
ParallelEnumerable.cs
Исходный код:
ParallelEnumerable.cs

Внимание

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

Эту перегрузку intersect никогда не следует вызывать. Этот метод помечается как устаревший и всегда вызывается 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)

Параметры типа

TSource

Этот параметр типа не используется.

Параметры

first
ParallelQuery<TSource>

Этот параметр не используется.

second
IEnumerable<TSource>

Этот параметр не используется.

comparer
IEqualityComparer<TSource>

Этот параметр не используется.

Возвращаемое значение

Эта перегрузка NotSupportedExceptionвсегда вызывает исключение.

Атрибуты

Исключения

Исключение, возникающее при вызове этого метода.

Комментарии

Эта перегрузка существует для запрета использования Intersect с левым источником данных типа ParallelQuery<TSource> и правым источником данных типа IEnumerable<T>. В противном случае оператор Intersect, как представляется, привязывается к параллельной реализации, но в действительности привязывается к последовательной реализации.

См. также раздел

Применяется к

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

Исходный код:
ParallelEnumerable.cs
Исходный код:
ParallelEnumerable.cs
Исходный код:
ParallelEnumerable.cs
Исходный код:
ParallelEnumerable.cs
Исходный код:
ParallelEnumerable.cs

Создает набор пересечения двух параллельных последовательностей с помощью указанного IEqualityComparer{T} для сравнения значений.

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)

Параметры типа

TSource

Тип элементов входных последовательностей.

Параметры

first
ParallelQuery<TSource>

Последовательность, в которой будут возвращены различные элементы, которые также отображаются second .

second
ParallelQuery<TSource>

Последовательность, элементы которой также отображаются в первой последовательности, будут возвращены.

comparer
IEqualityComparer<TSource>

Значение для сравнения значений IEqualityComparer<T> .

Возвращаемое значение

Последовательность, содержащая элементы, которые образуют пересечение набора двух последовательностей.

Исключения

Запрос был отменен с помощью маркера, переданного через WithCancellation<TSource>(ParallelQuery<TSource>, CancellationToken).

first или second является пустой ссылкой (Нет в Visual Basic).

Во время оценки запроса произошло одно или несколько исключений.

См. также раздел

Применяется к

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

Исходный код:
ParallelEnumerable.cs
Исходный код:
ParallelEnumerable.cs
Исходный код:
ParallelEnumerable.cs
Исходный код:
ParallelEnumerable.cs
Исходный код:
ParallelEnumerable.cs

Внимание

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

Эту перегрузку intersect никогда не следует вызывать. Этот метод помечается как устаревший и всегда вызывается 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)

Параметры типа

TSource

Этот параметр типа не используется.

Параметры

first
ParallelQuery<TSource>

Этот параметр не используется.

second
IEnumerable<TSource>

Этот параметр не используется.

Возвращаемое значение

Эта перегрузка NotSupportedExceptionвсегда вызывает исключение.

Атрибуты

Исключения

Исключение, возникающее при вызове этого метода.

Комментарии

Эта перегрузка существует для запрета использования Intersect с левым источником данных типа ParallelQuery<TSource> и правым источником данных типа IEnumerable<T>. В противном случае оператор Intersect, как представляется, привязывается к параллельной реализации, но в действительности привязывается к последовательной реализации.

См. также раздел

Применяется к

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

Исходный код:
ParallelEnumerable.cs
Исходный код:
ParallelEnumerable.cs
Исходный код:
ParallelEnumerable.cs
Исходный код:
ParallelEnumerable.cs
Исходный код:
ParallelEnumerable.cs

Создает набор пересечения двух параллельных последовательностей с помощью сравнения значений по умолчанию.

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)

Параметры типа

TSource

Тип элементов входных последовательностей.

Параметры

first
ParallelQuery<TSource>

Последовательность, в которой будут возвращены различные элементы, которые также отображаются second .

second
ParallelQuery<TSource>

Последовательность, элементы которой также отображаются в первой последовательности, будут возвращены.

Возвращаемое значение

Последовательность, содержащая элементы, которые образуют пересечение набора двух последовательностей.

Исключения

Запрос был отменен с помощью маркера, переданного через WithCancellation<TSource>(ParallelQuery<TSource>, CancellationToken).

first или second является пустой ссылкой (Нет в Visual Basic).

Во время оценки запроса произошло одно или несколько исключений.

См. также раздел

Применяется к