SyntaxTree.GetRootAsync(CancellationToken) 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 le nœud racine de l’arborescence de syntaxe de manière asynchrone.
public System.Threading.Tasks.Task<Microsoft.CodeAnalysis.SyntaxNode> GetRootAsync(System.Threading.CancellationToken cancellationToken = default);
member this.GetRootAsync : System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.CodeAnalysis.SyntaxNode>
Public Function GetRootAsync (Optional cancellationToken As CancellationToken = Nothing) As Task(Of SyntaxNode)
Paramètres
- cancellationToken
- CancellationToken