Bagikan melalui


Document.GetTextChangesAsync(Document, CancellationToken) Metode

Definisi

Dapatkan perubahan teks antara dokumen ini dan versi sebelumnya dari dokumen yang sama. Perubahan, ketika diterapkan ke teks dokumen lama, akan menghasilkan teks dokumen saat ini.

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

Parameter

oldDocument
Document
cancellationToken
CancellationToken

Mengembalikan

Berlaku untuk