Share via


TableClient.SubmitTransaction Method

Definition

Submits the batch transaction to the service for execution. The sub-operations contained in the batch will either succeed or fail together as a transaction.

public virtual Azure.Response<System.Collections.Generic.IReadOnlyList<Azure.Response>> SubmitTransaction (System.Collections.Generic.IEnumerable<Azure.Data.Tables.TableTransactionAction> transactionActions, System.Threading.CancellationToken cancellationToken = default);
abstract member SubmitTransaction : seq<Azure.Data.Tables.TableTransactionAction> * System.Threading.CancellationToken -> Azure.Response<System.Collections.Generic.IReadOnlyList<Azure.Response>>
override this.SubmitTransaction : seq<Azure.Data.Tables.TableTransactionAction> * System.Threading.CancellationToken -> Azure.Response<System.Collections.Generic.IReadOnlyList<Azure.Response>>
Public Overridable Function SubmitTransaction (transactionActions As IEnumerable(Of TableTransactionAction), Optional cancellationToken As CancellationToken = Nothing) As Response(Of IReadOnlyList(Of Response))

Parameters

transactionActions
IEnumerable<TableTransactionAction>

The IEnumerable<T> containing the TableTransactionActions to submit to the service.

cancellationToken
CancellationToken

A CancellationToken controlling the request lifetime.

Returns

Response<T> containing a IReadOnlyList<T> of Response. Each sub-response in the collection corresponds to the TableTransactionAction provided to the transactionActions parameter at the same index position. Each response can be inspected for details for its corresponding table operation, such as the Headers property containing the ETag

Exceptions

Applies to