ParallelOptions Class

Namespace: System.Linq

Represents options that can be specified for PLINQ queries.

Syntax


public class ParallelOptions : IEquatable<ParallelOptions>
            

Remarks

The ParallelOptions class allows you to specify various settings for controlling the execution of parallel queries in LINQ. These options include setting the maximum degree of parallelism, specifying a cancellation token for aborting the query, and more. By default, PLINQ automatically manages the degree of parallelism to optimize performance. However, you can use ParallelOptions to override this behavior if necessary.

Constructors

Properties

Methods

See Also