ParallelEnumerable.GroupJoin(Of TOuter, TInner, TKey, TResult) Method (ParallelQuery(Of TOuter), ParallelQuery(Of TInner), Func(Of TOuter, TKey), Func(Of TInner, TKey), Func(Of TOuter, IEnumerable(Of TInner), TResult))
Correlates in parallel the elements of two sequences based on equality of keys and groups the results. The default equality comparer is used to compare keys.
Assembly: System.Core (in System.Core.dll)
<ExtensionAttribute> Public Shared Function GroupJoin(Of TOuter, TInner, TKey, TResult) ( outer As ParallelQuery(Of TOuter), inner As ParallelQuery(Of TInner), outerKeySelector As Func(Of TOuter, TKey), innerKeySelector As Func(Of TInner, TKey), resultSelector As Func(Of TOuter, IEnumerable(Of TInner), TResult) ) As ParallelQuery(Of TResult)
Parameters
- outer
-
Type:
System.Linq.ParallelQuery(Of TOuter)
The first sequence to join.
- inner
-
Type:
System.Linq.ParallelQuery(Of TInner)
The sequence to join to the first sequence.
- outerKeySelector
-
Type:
System.Func(Of TOuter, TKey)
A function to extract the join key from each element of the first sequence.
- innerKeySelector
-
Type:
System.Func(Of TInner, TKey)
A function to extract the join key from each element of the second sequence.
- resultSelector
-
Type:
System.Func(Of TOuter, IEnumerable(Of TInner), TResult)
A function to create a result element from an element from the first sequence and a collection of matching elements from the second sequence.
Return Value
Type: System.Linq.ParallelQuery(Of TResult)A sequence that has elements of type TResult that are obtained by performing a grouped join on two sequences.
Type Parameters
- TOuter
The type of the elements of the second sequence.
- TInner
The type of the elements of the first sequence.
- TKey
The type of the keys returned by the key selector functions.
- TResult
The type of the result elements.
| Exception | Condition |
|---|---|
| OperationCanceledException | The query was canceled with the token passed in through WithCancellation. |
| ArgumentNullException | source or action is a null reference (Nothing in Visual Basic). |
| AggregateException | One or more exceptions occurred during the evaluation of the query. |
Available since 8
.NET Framework
Available since 4.0
Portable Class Library
Supported in: portable .NET platforms
Windows Phone
Available since 8.1