SyntaxTree.TryGetRootCore(SyntaxNode) 方法

定义

获取语法树的根(如果可用)。

protected:
 abstract bool TryGetRootCore([Runtime::InteropServices::Out] Microsoft::CodeAnalysis::SyntaxNode ^ % root);
protected abstract bool TryGetRootCore (out Microsoft.CodeAnalysis.SyntaxNode root);
protected abstract bool TryGetRootCore (out Microsoft.CodeAnalysis.SyntaxNode? root);
abstract member TryGetRootCore : SyntaxNode -> bool
Protected MustOverride Function TryGetRootCore (ByRef root As SyntaxNode) As Boolean

参数

root
SyntaxNode

返回

适用于