SyntaxTree.GetRootCore(CancellationToken) 方法

定义

获取语法树的根节点,如有必要,导致计算。

protected:
 abstract Microsoft::CodeAnalysis::SyntaxNode ^ GetRootCore(System::Threading::CancellationToken cancellationToken);
protected abstract Microsoft.CodeAnalysis.SyntaxNode GetRootCore (System.Threading.CancellationToken cancellationToken);
abstract member GetRootCore : System.Threading.CancellationToken -> Microsoft.CodeAnalysis.SyntaxNode
Protected MustOverride Function GetRootCore (cancellationToken As CancellationToken) As SyntaxNode

参数

cancellationToken
CancellationToken

返回

适用于