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>::TrySetException Method
.NET Framework (current version)
Attempts to transition the underlying Task<TResult> object into the TaskStatus::Faulted state.
Assembly: mscorlib (in mscorlib.dll)
| Name | Description | |
|---|---|---|
![]() | TrySetException(Exception^) | Attempts to transition the underlying Task<TResult> into the Faulted state and binds it to a specified exception. |
![]() | TrySetException(IEnumerable<Exception^>^) | Attempts to transition the underlying Task<TResult> into the Faulted state and binds a collection of exception objects to it. |
Show:
