This documentation is archived and is not being maintained.
Task::IsCanceled Property
Visual Studio 2010
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.
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Show: