Compartilhar via


CSharpSyntaxTree.TryGetRoot(CSharpSyntaxNode) Método

Definição

Obtém o nó raiz da árvore de sintaxe se ela já estiver disponível.

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

Parâmetros

Retornos

Aplica-se a