共用方式為


Document.GetTextChangesAsync(Document, CancellationToken) 方法

定義

取得此檔與相同檔舊版之間的文字變更。 套用至舊檔的文字時,這些變更會產生目前檔的文字。

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

參數

oldDocument
Document
cancellationToken
CancellationToken

傳回

適用於