TextDocument.GetTextAsync(CancellationToken) 方法

定义

异步获取文档的当前文本。

public System.Threading.Tasks.Task<Microsoft.CodeAnalysis.Text.SourceText> GetTextAsync (System.Threading.CancellationToken cancellationToken = default);
member this.GetTextAsync : System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.CodeAnalysis.Text.SourceText>
Public Function GetTextAsync (Optional cancellationToken As CancellationToken = Nothing) As Task(Of SourceText)

参数

cancellationToken
CancellationToken

返回

适用于