TaskCompletionSource<TResult> Methods

 

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

NameDescription
System_CAPS_pubmethodEquals(Object)

Determines whether the specified object is equal to the current object.(Inherited from Object.)

System_CAPS_protmethodFinalize()

Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

Serves as the default hash function. (Inherited from Object.)

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_protmethodMemberwiseClone()

Creates a shallow copy of the current Object.(Inherited from Object.)

System_CAPS_pubmethodSetCanceled()

Transitions the underlying Task<TResult> into the Canceled state.

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.

System_CAPS_pubmethodSetResult(TResult)

Transitions the underlying Task<TResult> into the RanToCompletion state.

System_CAPS_pubmethodToString()

Returns a string that represents the current object.(Inherited from Object.)

System_CAPS_pubmethodTrySetCanceled()

Attempts to transition the underlying Task<TResult> into the Canceled state.

System_CAPS_pubmethodTrySetCanceled(CancellationToken)

Attempts to transition the underlying Task<TResult> into the TaskStatus.Canceled state and enables a cancellation token to be stored in the canceled task.

System_CAPS_pubmethodTrySetException(Exception)

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

System_CAPS_pubmethodTrySetException(IEnumerable<Exception>)

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

System_CAPS_pubmethodTrySetResult(TResult)

Attempts to transition the underlying Task<TResult> into the RanToCompletion state.

Return to top
Show: