Task.IsCanceled Property
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Gets whether this Task instance has completed execution due to being canceled.
Assembly: mscorlib (in mscorlib.dll)
Property Value
Type: System.Booleantrue if the task has completed due to being canceled; otherwise false.
A Task will complete in Canceled state either if its 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 CancellationToken.