Język

HttpDocumentRetriever.GetDocumentAsync(String, CancellationToken) Metoda

Definicja

Zwraca zadanie zawierające ciąg przekonwertowany z dokumentu zdalnego po zakończeniu przy użyciu podanego adresu.

public System.Threading.Tasks.Task<string> GetDocumentAsync(string address, System.Threading.CancellationToken cancel);
abstract member GetDocumentAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<string>
override this.GetDocumentAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<string>
Public Function GetDocumentAsync (address As String, cancel As CancellationToken) As Task(Of String)

Parametry

address
String

Lokalizacja dokumentu

cancel
CancellationToken

Token anulowania, który może być używany przez inne obiekty lub wątki do otrzymywania powiadomienia o anulowaniu. CancellationToken

Zwraca

Dokument jako ciąg

Implementuje

Dotyczy