Document.GetTextChangesAsync(Document, 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.
Obtenez les modifications de texte entre ce document et une version antérieure du même document. Les modifications, lorsqu’elles sont appliquées au texte de l’ancien document, produisent le texte du document actif.
public System.Threading.Tasks.Task<System.Collections.Generic.IEnumerable<Microsoft.CodeAnalysis.Text.TextChange>> GetTextChangesAsync(Microsoft.CodeAnalysis.Document oldDocument, System.Threading.CancellationToken cancellationToken = default);
member this.GetTextChangesAsync : Microsoft.CodeAnalysis.Document * System.Threading.CancellationToken -> System.Threading.Tasks.Task<seq<Microsoft.CodeAnalysis.Text.TextChange>>
Public Function GetTextChangesAsync (oldDocument As Document, Optional cancellationToken As CancellationToken = Nothing) As Task(Of IEnumerable(Of TextChange))
Paramètres
- oldDocument
- Document
- cancellationToken
- CancellationToken