HttpDocumentRetriever.GetDocumentAsync(String, CancellationToken) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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