System.Threading.Tasks.TaskCompletionSource<TResult>: Method Members

The methods of System.Threading.Tasks.TaskCompletionSource<TResult> are listed below. For a list of all members, see the TaskCompletionSource<TResult> Members list.

See Also: Inherited members from System.Object

Public Methods

SetCanceled()

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

SetException(IEnumerable<Exception>)

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

SetException(Exception)

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

SetResult(TResult)
Documentation for this section has not yet been entered.
TrySetCanceled() : bool

Attempts to transition the underlying System.Threading.Tasks.Task`1 into the TaskStatus.Canceled state.

TrySetException(IEnumerable<Exception>) : bool

Attempts to transition the underlying System.Threading.Tasks.Task`1 into the TaskStatus.Faulted state.

TrySetException(Exception) : bool

Attempts to transition the underlying System.Threading.Tasks.Task`1 into the TaskStatus.Faulted state.

TrySetResult(TResult) : bool
Documentation for this section has not yet been entered.