ParallelEnumerable.Union(Of TSource) Method (ParallelQuery(Of TSource), IEnumerable(Of TSource), IEqualityComparer(Of TSource))
This Union overload should never be called. This method is marked as obsolete and always throws NotSupportedException when called.
Assembly: System.Core (in System.Core.dll)
<ExtensionAttribute> <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 Shared Function Union(Of TSource) ( first As ParallelQuery(Of TSource), second As IEnumerable(Of TSource), comparer As IEqualityComparer(Of TSource) ) As ParallelQuery(Of TSource)
Parameters
- first
-
Type:
System.Linq.ParallelQuery(Of TSource)
This parameter is not used.
- second
-
Type:
System.Collections.Generic.IEnumerable(Of TSource)
This parameter is not used.
- comparer
-
Type:
System.Collections.Generic.IEqualityComparer(Of TSource)
This parameter is not used.
Return Value
Type: System.Linq.ParallelQuery(Of TSource)This overload always throws a NotSupportedException.
Type Parameters
- TSource
This type parameter is not used.
| Exception | Condition |
|---|---|
| NotSupportedException | The exception that occurs when this method is called. |
| OperationCanceledException | The query was canceled with the token passed in through WithCancellation. |
| AggregateException | One or more exceptions occurred during the evaluation of the query. |
This overload exists to disallow usage of Union with a left data source of type ParallelQuery(Of TSource) and a right data source of type IEnumerable(Of T). Otherwise, the Union operator would appear to be binding to the parallel implementation, but would in reality bind to the sequential implementation.
Available since 8
.NET Framework
Available since 4.0
Portable Class Library
Supported in: portable .NET platforms
Windows Phone
Available since 8.1