System.Threading.Tasks.Task.IsCanceled Property

Gets whether this System.Threading.Tasks.Task instance has completed execution due to being canceled.

Syntax

public bool IsCanceled { get; }

Value

Documentation for this section has not yet been entered.

Remarks

A System.Threading.Tasks.Task will complete in Canceled state either if its TaskFactory.CancellationToken was marked for cancellation before the task started executing, or if the task acknowledged the cancellation request on its already signaled CancellationToken by throwing an OperationCanceledException that bears the same System.Threading.CancellationToken.

Requirements

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