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

반환

적용 대상