CancellationToken Property
Collapse the table of content
Expand the table of content

TaskFactory.CancellationToken Property

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Gets the default CancellationToken of this TaskFactory.

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

public CancellationToken CancellationToken { get; }

Property Value

Type: System.Threading.CancellationToken
The default CancellationToken of this TaskFactory.

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.

Windows Phone OS

Supported in: 8.1, 8.0

Show:
© 2016 Microsoft