共用方式為


Task<TResult>.Result Property

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Gets the result value of this Task<TResult>.

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

Syntax

'Declaration
<DebuggerBrowsableAttribute(DebuggerBrowsableState.Never)> _
Public ReadOnly Property Result As TResult
[DebuggerBrowsableAttribute(DebuggerBrowsableState.Never)]
public TResult Result { get; }

Property Value

Type: TResult
The result value of this Task<TResult>, which is the same type as the task's type parameter.

Remarks

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.

Version Information

Silverlight

Supported in: 5

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.