Condividi tramite


TextDocument.GetTextAsync(CancellationToken) Metodo

Definizione

Ottiene il testo corrente per il documento in modo asincrono.

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)

Parametri

cancellationToken
CancellationToken

Restituisce

Si applica a