Gets the result value of this Task<(Of <(TResult>)>).
Public Property Result As TResult Get Friend Set
public TResult Result { get; internal set; }
public: property TResult Result { TResult get (); internal: void set (TResult value); }
member Result : 'TResult with get, internal set
The get accessor for this property ensures that the asynchronous operation is complete before returning. Once the result of the computation is available, it is stored and will be returned immediately on later calls to Result.
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
Can we check if result is ready and if not, just omit the value ?
something like
string s="nope";
if(task1.IsReady())
s = task1.Result;
and s will be "nope" or "duck" (as those are the only results I'm interested in)
Esther Fan, MSFT: Thank you for your feedback. To get a quicker response to questions like this, please try the following forums: MSDN: http://forums.microsoft.com/msdn
MSDN: http://forums.microsoft.com/msdn