Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

ParallelOptions Class

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

System.Object
  System.Threading.Tasks.ParallelOptions

Namespace:  System.Threading.Tasks
Assembly:  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

Portable Class Library

Supported in: Portable Class Library

Supported in: Windows Phone 8.1

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