共用方式為


TransactionalBatch.ReadItem Method

Definition

Adds an operation to read an item into the batch.

public abstract Microsoft.Azure.Cosmos.TransactionalBatch ReadItem (string id, Microsoft.Azure.Cosmos.TransactionalBatchItemRequestOptions requestOptions = default);
abstract member ReadItem : string * Microsoft.Azure.Cosmos.TransactionalBatchItemRequestOptions -> Microsoft.Azure.Cosmos.TransactionalBatch
Public MustOverride Function ReadItem (id As String, Optional requestOptions As TransactionalBatchItemRequestOptions = Nothing) As TransactionalBatch

Parameters

id
String

The unique id of the item.

requestOptions
TransactionalBatchItemRequestOptions

(Optional) The options for the item request.

Returns

The transactional batch instance with the operation added.

Applies to