System.Threading.Tasks.TaskCompletionSource<TResult>.SetException Method

Transitions the underlying System.Threading.Tasks.Task`1 into the TaskStatus.Faulted state.

Syntax

public void SetException (IEnumerable<Exception> exceptions)

Parameters

exceptions
The collection of exceptions to bind to this System.Threading.Tasks.Task`1.

Remarks

Documentation for this section has not yet been entered.

Requirements

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