다음을 통해 공유


Container.CreateTransactionalBatch(PartitionKey) Method

Definition

Initializes a new instance of TransactionalBatch that can be used to perform operations across multiple items in the container with the provided partition key in a transactional manner.

public abstract Microsoft.Azure.Cosmos.TransactionalBatch CreateTransactionalBatch (Microsoft.Azure.Cosmos.PartitionKey partitionKey);
abstract member CreateTransactionalBatch : Microsoft.Azure.Cosmos.PartitionKey -> Microsoft.Azure.Cosmos.TransactionalBatch
Public MustOverride Function CreateTransactionalBatch (partitionKey As PartitionKey) As TransactionalBatch

Parameters

partitionKey
PartitionKey

The partition key for all items in the batch.

Returns

A new instance of TransactionalBatch.

Remarks

Limits on TransactionalBatch requests

Applies to