TableClient.SubmitTransaction 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.
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
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應