共用方式為


SemanticModel.GetOperation(SyntaxNode, CancellationToken) 方法

定義

取得對應至運算式或語句語法節點的作業。

public Microsoft.CodeAnalysis.IOperation GetOperation (Microsoft.CodeAnalysis.SyntaxNode node, System.Threading.CancellationToken cancellationToken = default);
public Microsoft.CodeAnalysis.IOperation? GetOperation (Microsoft.CodeAnalysis.SyntaxNode node, System.Threading.CancellationToken cancellationToken = default);
member this.GetOperation : Microsoft.CodeAnalysis.SyntaxNode * System.Threading.CancellationToken -> Microsoft.CodeAnalysis.IOperation
Public Function GetOperation (node As SyntaxNode, Optional cancellationToken As CancellationToken = Nothing) As IOperation

參數

node
SyntaxNode

運算式或語句語法節點。

cancellationToken
CancellationToken

選擇性解除標記。

傳回

適用於