다음을 통해 공유


TableClient.SubmitTransactionAsync 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 System.Threading.Tasks.Task<Azure.Response<System.Collections.Generic.IReadOnlyList<Azure.Response>>> SubmitTransactionAsync (System.Collections.Generic.IEnumerable<Azure.Data.Tables.TableTransactionAction> transactionActions, System.Threading.CancellationToken cancellationToken = default);
abstract member SubmitTransactionAsync : seq<Azure.Data.Tables.TableTransactionAction> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<System.Collections.Generic.IReadOnlyList<Azure.Response>>>
override this.SubmitTransactionAsync : seq<Azure.Data.Tables.TableTransactionAction> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<System.Collections.Generic.IReadOnlyList<Azure.Response>>>
Public Overridable Function SubmitTransactionAsync (transactionActions As IEnumerable(Of TableTransactionAction), Optional cancellationToken As CancellationToken = Nothing) As Task(Of 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