Share via


HttpDocumentRetriever.GetDocumentAsync(String, CancellationToken) Method

Definition

Returns a task which contains a string converted from remote document when completed, by using the provided address.

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)

Parameters

address
String

Location of document

cancel
CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation. CancellationToken

Returns

Document as a string

Implements

Applies to