TaskFactory<TResult>::CancellationToken Property

 

Gets the default cancellation token for this task factory.

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

public:
property CancellationToken CancellationToken {
	CancellationToken get();
}

Property Value

Type: System.Threading::CancellationToken

The default cancellation token for this task factory.

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

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