Freigeben über


TextDocument.GetTextAsync(CancellationToken) Methode

Definition

Ruft den aktuellen Text für das Dokument asynchron ab.

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)

Parameter

cancellationToken
CancellationToken

Gibt zurück

Gilt für: