The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.
Task::FromCanceled Method
.NET Framework (current version)
Namespace:
System.Threading.Tasks
Assembly: mscorlib (in mscorlib.dll)
| Name | Description | |
|---|---|---|
![]() ![]() | FromCanceled(CancellationToken) | Creates a Task that's completed due to cancellation with a specified cancellation token. |
![]() ![]() | FromCanceled<TResult>(CancellationToken) | Creates a Task<TResult> that's completed due to cancellation with a specified cancellation token. |
Show:

