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.
Assembly: System.Core (in System.Core.dll)
public: generic<typename TSource> [ExtensionAttribute] static ParallelQuery<TSource>^ WithMergeOptions( 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
Available since 8
.NET Framework
Available since 4.0
Portable Class Library
Supported in: portable .NET platforms
Windows Phone
Available since 8.1
Show: