共用方式為


AwaitExpressionInfo.RuntimeAwaitMethod Property

Definition

When runtime async is enabled for this await expression, this represents either:

  • A call to System.Runtime.CompilerServices.AsyncHelpers.Await, if this is a supported task type. In such cases, GetAwaiterMethod, IsCompletedProperty, and GetResultMethod will be null.
  • A call to System.Runtime.CompilerServices.AsyncHelpers.AwaitAwaiter|UnsafeAwaitAwaiter. In these cases, the other properties may be non-null if the the rest of the await expression is successfully bound.
public Microsoft.CodeAnalysis.IMethodSymbol? RuntimeAwaitMethod { get; }
member this.RuntimeAwaitMethod : Microsoft.CodeAnalysis.IMethodSymbol
Public ReadOnly Property RuntimeAwaitMethod As IMethodSymbol

Property Value

Applies to