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)
[ExtensionAttribute] public: generic<typename TSource> static ParallelQuery<TSource>^ WithDegreeOfParallelism( ParallelQuery<TSource>^ source, int degreeOfParallelism )
The type of elements of source.
- Type: System.Linq::ParallelQuery<>
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.