ParallelEnumerable.WithExecutionMode<TSource> Method (ParallelQuery<TSource>, ParallelExecutionMode)
Sets the execution mode of the query.
Assembly: System.Core (in System.Core.dll)
public static ParallelQuery<TSource> WithExecutionMode<TSource>( this ParallelQuery<TSource> source, ParallelExecutionMode executionMode )
A ParallelQuery on which to set the option.
The mode in which to execute the query.
Return ValueType: System.Linq.ParallelQuery< >
ParallelQuery representing the same query as source, but with the registered execution mode.
The type of elements of source.
The execution mode specifies whether PLINQ will attempt to fall back to sequential execution if it detects certain query shapes. For more information and examples, see How to: Specify the Execution Mode in PLINQ.
Available since 8
Available since 4.0
Portable Class Library
Supported in: portable .NET platforms
Available since 8.1