Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

ParallelEnumerable.WithMergeOptions<TSource> Method (ParallelQuery<TSource>, ParallelMergeOptions)

.NET Framework (current version)
 

Sets the merge options for this query, which specify how the query will buffer output.

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

public static ParallelQuery<TSource> WithMergeOptions<TSource>(
	this ParallelQuery<TSource> source,
	ParallelMergeOptions mergeOptions
)

Parameters

source
Type: System.Linq.ParallelQuery<TSource>

A ParallelQuery on which to set the option.

mergeOptions
Type: System.Linq.ParallelMergeOptions

The merge options to set for this query.

Return Value

Type: System.Linq.ParallelQuery<TSource>

ParallelQuery representing the same query as source, but with the registered merge options.

Type Parameters

TSource

The type of elements of source.

Exception Condition
ArgumentNullException

source is a null reference (Nothing in Visual Basic).

ArgumentException

mergeOptions is not a valid ParallelMergeOptions value.

InvalidOperationException

WithMergeOptions is used multiple times in the query.

Universal Windows Platform
Available since 8
.NET Framework
Available since 4.0
Portable Class Library
Supported in: portable .NET platforms
Windows Phone
Available since 8.1
Return to top
Show:
© 2016 Microsoft