SemanticModel.GetOperation(SyntaxNode, CancellationToken) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Spolupracujte s námi na GitHubu
Zdroj tohoto obsahu najdete na GitHubu, kde můžete také vytvářet a kontrolovat problémy a žádosti o přijetí změn. Další informace najdete v našem průvodci pro přispěvatele.