TaskCompletionSource<TResult>.SetException Method

 

Transitions the underlying Task<TResult> object into the TaskStatus.Faulted state.

Namespace:   System.Threading.Tasks
Assembly:  mscorlib (in mscorlib.dll)

NameDescription
System_CAPS_pubmethodSetException(Exception)

Transitions the underlying Task<TResult> into the Faulted state and binds it to a specified exception.

System_CAPS_pubmethodSetException(IEnumerable<Exception>)

Transitions the underlying Task<TResult> into the TaskStatus.Faulted state and binds a collection of exception objects to it.

Return to top
Show: