語言

HttpDocumentRetriever.GetDocumentAsync(String, CancellationToken) 方法

定義

回傳一個任務,完成後包含由遠端文件轉換的字串,使用提供的位址。

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)

參數

address
String

文件所在地

cancel
CancellationToken

一種可被其他物件或執行緒用來接收取消通知的取消標記。 CancellationToken

傳回

文件作為字串

實作

適用於