Bagikan melalui


TransactionalBatchResponse Class

Definition

Response of a TransactionalBatch request.

public class TransactionalBatchResponse : IDisposable, System.Collections.Generic.IEnumerable<Microsoft.Azure.Cosmos.TransactionalBatchOperationResult>, System.Collections.Generic.IReadOnlyCollection<Microsoft.Azure.Cosmos.TransactionalBatchOperationResult>, System.Collections.Generic.IReadOnlyList<Microsoft.Azure.Cosmos.TransactionalBatchOperationResult>
type TransactionalBatchResponse = class
    interface IReadOnlyList<TransactionalBatchOperationResult>
    interface seq<TransactionalBatchOperationResult>
    interface IEnumerable
    interface IReadOnlyCollection<TransactionalBatchOperationResult>
    interface IDisposable
Public Class TransactionalBatchResponse
Implements IDisposable, IEnumerable(Of TransactionalBatchOperationResult), IReadOnlyCollection(Of TransactionalBatchOperationResult), IReadOnlyList(Of TransactionalBatchOperationResult)
Inheritance
TransactionalBatchResponse
Implements

Constructors

TransactionalBatchResponse()

Initializes a new instance of the TransactionalBatchResponse class.

Properties

ActivityId

Gets the ActivityId that identifies the server request made to execute the batch.

Count

Gets the number of operation results.

Diagnostics

Gets the cosmos diagnostic information for the current request to Azure Cosmos DB service

ErrorMessage

Gets the reason for failure of the batch request.

Headers

Gets the current HTTP headers.

IsSuccessStatusCode

Gets a value indicating whether the batch was processed.

Item[Int32]

Gets the result of the operation at the provided index in the batch.

RequestCharge

Gets the request charge for the batch request.

RetryAfter

Gets the amount of time to wait before retrying this or any other request within Cosmos container or collection due to throttling.

StatusCode

Gets the completion status code of the batch request.

Methods

Dispose()

Disposes the current TransactionalBatchResponse.

Dispose(Boolean)

Disposes the disposable members held by this class.

GetEnumerator()

Gets an enumerator over the operation results.

GetOperationResultAtIndex<T>(Int32)

Gets the result of the operation at the provided index in the batch - the returned result has a Resource of provided type.

Explicit Interface Implementations

IEnumerable.GetEnumerator()

Returns an enumerator that iterates through a collection.

Applies to