CancellationToken Property

TaskFactory.CancellationToken Property


Gets the default cancellation token for this task factory.

Namespace:   System.Threading.Tasks
Assembly:  mscorlib (in mscorlib.dll)

public CancellationToken CancellationToken { get; }

Property Value

Type: System.Threading.CancellationToken

The default task cancellation token for this task factory.

This property returns the default CancellationToken that will be assigned to all tasks created by this factory, unless another CancellationToken value is explicitly specified during the call to the factory methods.

Universal Windows Platform
Available since 4.5
.NET Framework
Available since 4.0
Portable Class Library
Supported in: portable .NET platforms
Available since 5.0
Windows Phone Silverlight
Available since 8.0
Windows Phone
Available since 8.1
Return to top
© 2015 Microsoft