次の方法で共有


SyntaxTree.TryGetRoot(SyntaxNode) Method

Definition

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

public:
 bool TryGetRoot([Runtime::InteropServices::Out] Microsoft::CodeAnalysis::SyntaxNode ^ % root);
public bool TryGetRoot (out Microsoft.CodeAnalysis.SyntaxNode root);
public bool TryGetRoot (out Microsoft.CodeAnalysis.SyntaxNode? root);
member this.TryGetRoot : SyntaxNode -> bool
Public Function TryGetRoot (ByRef root As SyntaxNode) As Boolean

Parameters

root
SyntaxNode

Returns

Applies to