Click or drag to resize

SyncContextTaskCompletionSourceTResult Methods

Version 130.1.90

The SyncContextTaskCompletionSourceTResult type exposes the following members.

Methods
 NameDescription
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Public methodSetCanceledTransitions the underlying TaskTResult into the Canceled state.
(Inherited from TaskCompletionSourceTResult)
Public methodSetException(Exception)Transitions the underlying TaskTResult into the Faulted state and binds it to a specified exception.
(Inherited from TaskCompletionSourceTResult)
Public methodSetException(IEnumerableException)Transitions the underlying TaskTResult into the Faulted state and binds a collection of exception objects to it.
(Inherited from TaskCompletionSourceTResult)
Public methodSetResultTransitions the underlying TaskTResult into the RanToCompletion state.
(Inherited from TaskCompletionSourceTResult)
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Public methodTrySetCanceledAttempts to transition the underlying TaskTResult into the Canceled state.
(Inherited from TaskCompletionSourceTResult)
Public methodTrySetCanceled(CancellationToken)Attempts to transition the underlying TaskTResult into the Canceled state and enables a cancellation token to be stored in the canceled task.
(Inherited from TaskCompletionSourceTResult)
Public methodTrySetException(Exception)Attempts to transition the underlying TaskTResult into the Faulted state and binds it to a specified exception.
(Inherited from TaskCompletionSourceTResult)
Public methodTrySetException(IEnumerableException)Attempts to transition the underlying TaskTResult into the Faulted state and binds a collection of exception objects to it.
(Inherited from TaskCompletionSourceTResult)
Public methodTrySetResultAttempts to transition the underlying TaskTResult into the RanToCompletion state.
(Inherited from TaskCompletionSourceTResult)
Top
See Also