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

Note: This API is now obsolete.

This Join overload should never be called. This method is marked as obsolete and always throws NotSupportedException when invoked.

Namespace:  System.Linq
Assembly:  System.Core (in System.Core.dll)

[ObsoleteAttribute("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 ParallelQuery<TResult> Join<TOuter, TInner, TKey, TResult>(
	this ParallelQuery<TOuter> outer,
	IEnumerable<TInner> inner,
	Func<TOuter, TKey> outerKeySelector,
	Func<TInner, TKey> innerKeySelector,
	Func<TOuter, TInner, TResult> resultSelector
)

Type Parameters

TOuter

This type parameter is not used.

TInner

This type parameter is not used.

TKey

This type parameter is not used.

TResult

This type parameter is not used.

Parameters

outer
Type: System.Linq.ParallelQuery<TOuter>

This parameter is not used.

inner
Type: System.Collections.Generic.IEnumerable<TInner>

This parameter is not used.

outerKeySelector
Type: System.Func<TOuter, TKey>

This parameter is not used.

innerKeySelector
Type: System.Func<TInner, TKey>

This parameter is not used.

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

This parameter is not used.

Return Value

Type: System.Linq.ParallelQuery<TResult>
This overload always throws a NotSupportedException.

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.

This overload exists to disallow usage Join with a left data source of type ParallelQuery<TSource> and a right data source of type IEnumerable<T>. Otherwise, the Join operator would appear to be binding to the parallel implementation, but would in reality bind to the sequential implementation.

.NET Framework

Obsolete (compiler warning) in 4.5
Obsolete (compiler warning) in 4.5.1
Obsolete (compiler warning) in 4.5.2
Obsolete (compiler warning) in 4

.NET Framework Client Profile

Obsolete (compiler warning) in 4

Portable Class Library

Obsolete (compiler warning) in Portable Class Library

.NET for Windows Store apps

Obsolete (compiler warning) in Windows 8

.NET for Windows Phone apps

Obsolete (compiler warning) 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.

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft