TaskCompletionSource(Of TResult).Task Property
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Gets the Task(Of TResult) created by this TaskCompletionSource(Of TResult).
Assembly: mscorlib (in mscorlib.dll)
Property Value
Type: System.Threading.Tasks.Task(Of TResult)Returns the Task(Of TResult) created by this TaskCompletionSource(Of TResult).
This property enables a consumer to access the Task(Of TResult) that is controlled by this instance. When you create a TaskCompletionSource(Of TResult) object, the Status property of this Task(Of TResult) object returns WaitingForActivation
The SetResult, SetException, SetException, and SetCanceled methods (and their "Try" variants) on this instance all result in the relevant state transitions on this underlying Task.