SyntaxTree.GetRootAsync(CancellationToken) 方法

定义

异步获取语法树的根节点。

public System.Threading.Tasks.Task<Microsoft.CodeAnalysis.SyntaxNode> GetRootAsync (System.Threading.CancellationToken cancellationToken = default);
member this.GetRootAsync : System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.CodeAnalysis.SyntaxNode>
Public Function GetRootAsync (Optional cancellationToken As CancellationToken = Nothing) As Task(Of SyntaxNode)

参数

cancellationToken
CancellationToken

返回

适用于