TaskCompletionSource<TResult> Methods
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
The TaskCompletionSource<TResult> type exposes the following members.
| Name | Description | |
|---|---|---|
|
Equals(Object) | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) |
|
Finalize | Allows an object to try to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.) |
|
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) |
|
GetType | Gets the Type of the current instance. (Inherited from Object.) |
|
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
|
SetCanceled | Transitions the underlying Task<TResult> into the Canceled state. |
|
SetException(IEnumerable<Exception>) | Transitions the underlying Task<TResult> into the Faulted state. |
|
SetException(Exception) | Transitions the underlying Task<TResult> into the Faulted state. |
|
SetResult | Transitions the underlying Task<TResult> into the RanToCompletion state. |
|
ToString | Returns a string that represents the current object. (Inherited from Object.) |
|
TrySetCanceled | Attempts to transition the underlying Task<TResult> into the Canceled state. |
|
TrySetException(IEnumerable<Exception>) | Attempts to transition the underlying Task<TResult> into the Faulted state. |
|
TrySetException(Exception) | Attempts to transition the underlying Task<TResult> into the Faulted state. |
|
TrySetResult | Attempts to transition the underlying Task<TResult> into the RanToCompletion state. |
Show: