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