你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

ConfidentialLedgerClient.PostLedgerEntryAsync 方法

定义

将新条目发布到账本。 可以选择指定集合 ID。

public virtual System.Threading.Tasks.Task<Azure.Operation> PostLedgerEntryAsync (Azure.WaitUntil waitUntil, Azure.Core.RequestContent content, string collectionId = default, Azure.RequestContext context = default);
abstract member PostLedgerEntryAsync : Azure.WaitUntil * Azure.Core.RequestContent * string * Azure.RequestContext -> System.Threading.Tasks.Task<Azure.Operation>
override this.PostLedgerEntryAsync : Azure.WaitUntil * Azure.Core.RequestContent * string * Azure.RequestContext -> System.Threading.Tasks.Task<Azure.Operation>
Public Overridable Function PostLedgerEntryAsync (waitUntil As WaitUntil, content As RequestContent, Optional collectionId As String = Nothing, Optional context As RequestContext = Nothing) As Task(Of Operation)

参数

waitUntil
WaitUntil

Completed 如果方法应等待返回,直到服务上长时间运行的操作完成; Started 如果它应在启动操作后返回,则为 。 有关长时间运行的操作的详细信息,请参阅 Azure.Core Long-Running 操作示例

content
RequestContent

要作为请求正文发送的内容。

collectionId
String

集合 ID。

context
RequestContext

请求上下文。

返回

注解

下面是请求和响应有效负载的 JSON 架构。

请求正文:

LedgerEntry架构:

{
               contents: string, # Required. Contents of the ledger entry.
               collectionId: string, # Optional.
               transactionId: string, # Optional. A unique identifier for the state of the ledger. If returned as part of a LedgerEntry, it indicates the state from which the entry was read.
             }

适用于