共用方式為


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

傳回

適用於