HttpDocumentRetriever.GetDocumentAsync(String, CancellationToken) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
返回一个任务,该任务包含通过使用提供的地址在完成时从远程文档转换的字符串。
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
返回
文档作为字符串