ParallelEnumerable.WithDegreeOfParallelism<TSource> Method (ParallelQuery<TSource>, Int32)
Sets the degree of parallelism to use in a query. Degree of parallelism is the maximum number of concurrently executing tasks that will be used to process the query.
Assembly: System.Core (in System.Core.dll)
public static ParallelQuery<TSource> WithDegreeOfParallelism<TSource>( this ParallelQuery<TSource> source, int degreeOfParallelism )
A ParallelQuery on which to set the limit on the degrees of parallelism.
Return ValueType: System.Linq.ParallelQuery< >
ParallelQuery representing the same query as source, with the limit on the degrees of parallelism set.
The type of elements of source.
Available since 8
Available since 4.0
Portable Class Library
Supported in: portable .NET platforms
Available since 8.1