Condividi tramite


Document.GetTextChangesAsync(Document, CancellationToken) Metodo

Definizione

Ottenere le modifiche del testo tra questo documento e una versione precedente dello stesso documento. Le modifiche, quando applicate al testo del documento precedente, genereranno il testo del documento corrente.

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))

Parametri

oldDocument
Document
cancellationToken
CancellationToken

Restituisce

Si applica a