ParallelEnumerable.Intersect メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
2 つの並列シーケンスの集合積集合を生成します。
オーバーロード
| 名前 | 説明 |
|---|---|
| Intersect<TSource>(ParallelQuery<TSource>, IEnumerable<TSource>, IEqualityComparer<TSource>) |
古い.
この Intersect オーバーロードは呼び出さないでください。 このメソッドは古い形式としてマークされ、呼び出されると常に NotSupportedException がスローされます。 |
| Intersect<TSource>(ParallelQuery<TSource>, ParallelQuery<TSource>, IEqualityComparer<TSource>) |
指定した IEqualityComparer{T} を使用して値を比較することにより、2 つの並列シーケンスの集合積集合を生成します。 |
| Intersect<TSource>(ParallelQuery<TSource>, IEnumerable<TSource>) |
古い.
この Intersect オーバーロードは呼び出さないでください。 このメソッドは古い形式としてマークされ、呼び出されると常に NotSupportedException がスローされます。 |
| Intersect<TSource>(ParallelQuery<TSource>, ParallelQuery<TSource>) |
既定の等値比較子を使用して値を比較することにより、2 つの並列シーケンスの集合積集合を生成します。 |
Intersect<TSource>(ParallelQuery<TSource>, IEnumerable<TSource>, IEqualityComparer<TSource>)
注意事項
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をスローします。
- 属性
例外
このメソッドが呼び出されたときに発生する例外。
注釈
このオーバーロードは、 ParallelQuery<TSource> 型の左データ ソースと、 IEnumerable<T>型の適切なデータ ソースとの Intersect の使用を禁止するために存在します。 それ以外の場合、Intersect 演算子は並列実装にバインドされているように見えますが、実際には順次実装にバインドされます。
こちらもご覧ください
適用対象
Intersect<TSource>(ParallelQuery<TSource>, ParallelQuery<TSource>, IEqualityComparer<TSource>)
指定した IEqualityComparer{T} を使用して値を比較することにより、2 つの並列シーケンスの集合積集合を生成します。
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>。
返品
2 つのシーケンスの集合積集合を形成する要素を含むシーケンス。
例外
クエリは、 WithCancellation<TSource>(ParallelQuery<TSource>, CancellationToken)を介して渡されたトークンで取り消されました。
first または second は null 参照です (Visual Basic では Nothing)。
クエリの評価中に 1 つ以上の例外が発生しました。
こちらもご覧ください
適用対象
Intersect<TSource>(ParallelQuery<TSource>, IEnumerable<TSource>)
注意事項
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をスローします。
- 属性
例外
このメソッドが呼び出されたときに発生する例外。
注釈
このオーバーロードは、 ParallelQuery<TSource> 型の左データ ソースと、 IEnumerable<T>型の適切なデータ ソースとの Intersect の使用を禁止するために存在します。 それ以外の場合、Intersect 演算子は並列実装にバインドされているように見えますが、実際には順次実装にバインドされます。
こちらもご覧ください
適用対象
Intersect<TSource>(ParallelQuery<TSource>, ParallelQuery<TSource>)
既定の等値比較子を使用して値を比較することにより、2 つの並列シーケンスの集合積集合を生成します。
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>
最初のシーケンスにも出現する個別の要素が返されるシーケンス。
返品
2 つのシーケンスの集合積集合を形成する要素を含むシーケンス。
例外
クエリは、 WithCancellation<TSource>(ParallelQuery<TSource>, CancellationToken)を介して渡されたトークンで取り消されました。
first または second は null 参照です (Visual Basic では Nothing)。
クエリの評価中に 1 つ以上の例外が発生しました。