mscorlib 4.0.0.0 System.Object To be added.

Stores options that configure the operation of methods on the class.

- Constructor
  4.0.0.0

  This constructor initializes the instance with default values. is initialized to -1, signifying that there is no upper bound set on how much parallelism should be employed. is initialized to a non-cancelable token, and is initialized to the default scheduler (TaskScheduler.Default).

  All of these defaults may be overwritten using the property set accessors on the instance.

  Initializes a new instance of the class.

- Property
  4.0.0.0
  System.Threading.CancellationToken To be added.

  Providing a to a method enables the operation to be exited early. Code external to the operation may cancel the token, and if the operation observes the token being set, it may exit early by throwing an .

  Gets or sets the associated with this instance.

- Property
  4.0.0.0
  System.Int32 To be added.

  If the property is positive, it limits the number of concurrent operations run by method calls that are passed this instance to the set value. If it is -1, there is no limit on the number of concurrently running operations.

  By default, and will utilize however many threads the underlying scheduler provides, so changing from the default only limits how many concurrent tasks will be used.

  Ordinarily, you do not need to modify this setting. However, you may choose to set it explicitly in advanced usage scenarios such as the following: , Or, if

  You know that a particular algorithm you're using won't scale beyond a certain number of cores. You can set the property to avoid wasting cycles on additional cores.

  You're running multiple algorithms concurrently and want to manually define how much of the system each can utilize. You can set a value for each.

  For certain workloads, the thread pool's heuristics may be unable to determine the right number of threads to use and could end up injecting too many threads. For example, in long-running loop body iterations, the thread pool may not be able to tell the difference between reasonable progress or livelock or deadlock, and may not be able to reclaim threads added to improve performance. In this case, you can set the property to ensure that you don't use more than a reasonable number of threads.

  Gets or sets the maximum degree of parallelism enabled by this instance.

- Property
  4.0.0.0
  System.Threading.Tasks.TaskScheduler To be added. To be added.

  Gets or sets the associated with this instance. Setting this property to null indicates that the current scheduler should be used.