Gets or sets the maximum degree of parallelism enabled by this ParallelOptions instance.
Public Property MaxDegreeOfParallelism As Integer Get Set
public int MaxDegreeOfParallelism { get; set; }
public: property int MaxDegreeOfParallelism { int get (); void set (int value); }
member MaxDegreeOfParallelism : int with get, set
The exception that is thrown when this MaxDegreeOfParallelism is set to 0 or some value less than -1.
The MaxDegreeOfParallelism limits the number of concurrent operations run by Parallel method calls that are passed this ParallelOptions instance to the set value, if it is positive. If MaxDegreeOfParallelism is -1, then there is no limit placed on the number of concurrently running operations.
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2