CSharpSyntaxTree.GetRoot(CancellationToken) 方法

定义

获取语法树的根节点。

public abstract Microsoft.CodeAnalysis.CSharp.CSharpSyntaxNode GetRoot (System.Threading.CancellationToken cancellationToken = default);
override this.GetRoot : System.Threading.CancellationToken -> Microsoft.CodeAnalysis.CSharp.CSharpSyntaxNode
Public MustOverride Function GetRoot (Optional cancellationToken As CancellationToken = Nothing) As CSharpSyntaxNode

参数

cancellationToken
CancellationToken

返回

适用于