Compartilhar via


SemanticModel.GetOperation(SyntaxNode, CancellationToken) Method

Definition

Gets the operation corresponding to the expression or statement syntax node.

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

Parameters

node
SyntaxNode

The expression or statement syntax node.

cancellationToken
CancellationToken

An optional cancellation token.

Returns

Applies to