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.
TaskCompletionSource<TResult>::TrySetCanceled Method
.NET Framework (current version)
Attempts to transition the underlying Task<TResult> into the TaskStatus::Canceled state.
Assembly: mscorlib (in mscorlib.dll)
| Name | Description | |
|---|---|---|
![]() | TrySetCanceled() | Attempts to transition the underlying Task<TResult> into the Canceled state. |
![]() | TrySetCanceled(CancellationToken) | Attempts to transition the underlying Task<TResult> into the TaskStatus::Canceled state and enables a cancellation token to be stored in the canceled task. |
Show:
