共用方式為


VisualBasicExtensions.GetAwaitExpressionInfo 方法

定義

取得對應的 AwaitExpressionInfo,其中包含指定 AwaitExpressionSyntax 的語意資訊。

public static Microsoft.CodeAnalysis.VisualBasic.AwaitExpressionInfo GetAwaitExpressionInfo (this Microsoft.CodeAnalysis.SemanticModel semanticModel, Microsoft.CodeAnalysis.VisualBasic.Syntax.AwaitExpressionSyntax awaitExpression, System.Threading.CancellationToken cancellationToken = default);
static member GetAwaitExpressionInfo : Microsoft.CodeAnalysis.SemanticModel * Microsoft.CodeAnalysis.VisualBasic.Syntax.AwaitExpressionSyntax * System.Threading.CancellationToken -> Microsoft.CodeAnalysis.VisualBasic.AwaitExpressionInfo
<Extension()>
Public Function GetAwaitExpressionInfo (semanticModel As SemanticModel, awaitExpression As AwaitExpressionSyntax, Optional cancellationToken As CancellationToken = Nothing) As AwaitExpressionInfo

參數

semanticModel
SemanticModel
awaitExpression
AwaitExpressionSyntax
cancellationToken
CancellationToken

傳回

適用於