Windows apps
Collapse the table of content
Expand the table of content
Information
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

 

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:
© 2017 Microsoft