Windows Dev Center

ParallelOptions Class

.NET Framework 4.6 and 4.5

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

System.Object
  System.Threading.Tasks.ParallelOptions

Namespace:  System.Threading.Tasks
Assemblies:   System.Threading.Tasks.Parallel (in System.Threading.Tasks.Parallel.dll)
  mscorlib (in mscorlib.dll)

public class ParallelOptions

The ParallelOptions type exposes the following members.

  NameDescription
Public methodSupported by Portable Class LibraryParallelOptionsInitializes a new instance of the ParallelOptions class.
Top

  NameDescription
Public propertySupported by Portable Class LibraryCancellationTokenGets or sets the CancellationToken associated with this ParallelOptions instance.
Public propertySupported by Portable Class LibraryMaxDegreeOfParallelismGets or sets the maximum number of concurrent tasks enabled by this ParallelOptions instance.
Public propertySupported by Portable Class LibraryTaskSchedulerGets or sets the TaskScheduler associated with this ParallelOptions instance. Setting this property to null indicates that the current scheduler should be used.
Top

  NameDescription
Public methodSupported by Portable Class LibraryEquals(Object)Determines whether the specified object is equal to the current object. (Inherited from Object.)
Protected methodSupported by Portable Class LibraryFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public methodSupported by Portable Class LibraryGetHashCodeServes as the default hash function. (Inherited from Object.)
Public methodSupported by Portable Class LibraryGetTypeGets the Type of the current instance. (Inherited from Object.)
Protected methodSupported by Portable Class LibraryMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodSupported by Portable Class LibraryToStringReturns a string that represents the current object. (Inherited from Object.)
Top

.NET Framework

Supported in: 4.6, 4.5, 4

.NET Framework Client Profile

Supported in: 4

.NET for Windows Phone apps

Supported in: Windows Phone 8.1

Portable Class Library

Supported in: Portable Class Library

The constructor is thread-safe and may be used by multiple threads concurrently to construct multiple instances. None of the other public members are thread-safe.

Show:
© 2015 Microsoft