Прочитај на енглеском Уреди

Делите путем


ValueTask<TResult>.Result Property

Definition

Gets the result.

C#
public TResult Result { get; }

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

Производ Верзије
.NET Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Standard 2.0 (package-provided), 2.1