Export (0) Print
Expand All

ParallelEnumerable::Join<TOuter, TInner, TKey, TResult> Method (ParallelQuery<TOuter>, ParallelQuery<TInner>, Func<TOuter, TKey>, Func<TInner, TKey>, Func<TOuter, TInner, TResult>)

Correlates in parallel the elements of two sequences based on matching keys. The default equality comparer is used to compare keys.

Namespace:  System.Linq
Assemblies:   System.Linq.Parallel (in System.Linq.Parallel.dll)
  System.Core (in System.Core.dll)

[ExtensionAttribute]
public:
generic<typename TOuter, typename TInner, typename TKey, typename TResult>
static ParallelQuery<TResult>^ Join(
	ParallelQuery<TOuter>^ outer, 
	ParallelQuery<TInner>^ inner, 
	Func<TOuter, TKey>^ outerKeySelector, 
	Func<TInner, TKey>^ innerKeySelector, 
	Func<TOuter, TInner, TResult>^ resultSelector
)

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.

Parameters

outer
Type: System.Linq::ParallelQuery<TOuter>

The first sequence to join.

inner
Type: System.Linq::ParallelQuery<TInner>

The sequence to join to the first sequence.

outerKeySelector
Type: System::Func<TOuter, TKey>

A function to extract the join key from each element of the first sequence.

innerKeySelector
Type: System::Func<TInner, TKey>

A function to extract the join key from each element of the second sequence.

resultSelector
Type: System::Func<TOuter, TInner, TResult>

A function to create a result element from two matching elements.

Return Value

Type: System.Linq::ParallelQuery<TResult>
A sequence that has elements of type TResult that are obtained by performing an inner join on two sequences.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type ParallelQuery<TOuter>. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).

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

.NET Framework

Supported in: 4.6, 4.5, 4

.NET Framework Client Profile

Supported in: 4

Portable Class Library

Supported in: Portable Class Library

.NET for Windows Store apps

Supported in: Windows 8

Supported in: Windows Phone 8.1

Windows Phone 8.1, Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Show:
© 2014 Microsoft