EndorsementsRetriever.GetDocumentAsync(String, CancellationToken) 方法

定义

从地址获取文档。

public System.Threading.Tasks.Task<string> GetDocumentAsync (string address, System.Threading.CancellationToken cancellationToken);
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, cancellationToken As CancellationToken) As Task(Of String)

参数

address
String

文档的位置。

cancellationToken
CancellationToken

可由其他对象或线程用以接收取消通知的取消标记。

返回

表示排队等待执行的工作的任务。

实现

注解

如果活动成功发送,任务结果将包含字符串格式的文档。

适用于