Επεξεργασία

Κοινή χρήση μέσω


ValueTask<TResult>.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<TResult> has completed.

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

Applies to