Compartilhar via


TransactionalBatch.PatchItem Método

Definição

Adiciona uma operação para aplicar patch a um item no lote.

public abstract Microsoft.Azure.Cosmos.TransactionalBatch PatchItem (string id, System.Collections.Generic.IReadOnlyList<Microsoft.Azure.Cosmos.PatchOperation> patchOperations, Microsoft.Azure.Cosmos.TransactionalBatchPatchItemRequestOptions requestOptions = default);
abstract member PatchItem : string * System.Collections.Generic.IReadOnlyList<Microsoft.Azure.Cosmos.PatchOperation> * Microsoft.Azure.Cosmos.TransactionalBatchPatchItemRequestOptions -> Microsoft.Azure.Cosmos.TransactionalBatch
Public MustOverride Function PatchItem (id As String, patchOperations As IReadOnlyList(Of PatchOperation), Optional requestOptions As TransactionalBatchPatchItemRequestOptions = Nothing) As TransactionalBatch

Parâmetros

id
String

A ID exclusiva do item.

patchOperations
IReadOnlyList<PatchOperation>

Representa uma lista de operações a serem aplicadas sequencialmente ao item cosmos referenciado.

requestOptions
TransactionalBatchPatchItemRequestOptions

(Opcional) As opções para a solicitação de item.

Retornos

A instância do lote transacional com a operação adicionada.

Aplica-se a