TransactionalBatch.ReadItem Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.