Delen via


SyntaxTree.TryGetRootCore(SyntaxNode) Method

Definition

Gets the root of the syntax tree if it is available.

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

Parameters

root
SyntaxNode

Returns

Applies to