SyntaxTree.TryGetRoot(SyntaxNode) Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Obtient la racine de l’arborescence de syntaxe si elle est disponible.
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
Paramètres
- root
- SyntaxNode