Language

ValueTask.Result Property

Definition

Gets the result.

public:
 property TResult Result { TResult get(); };
public TResult Result { get; }
member this.Result : 'Result
Public ReadOnly Property Result As TResult

Property Value

TResult

The result.

Remarks

This property may only be accessed once, and only after this ValueTask has completed.

If this ValueTask has completed successfully, this property returns the resulting value. If this ValueTask has faulted, this property raises an exception. The thrown exception is not wrapped in an AggregateException.

Applies to