AceQL HTTP C# Client SDK v7.8

AceQLCommand..::..ExecuteBatchAsync Method (CancellationToken)

Submits a batch of commands to the database for execution and if all commands execute successfully, returns an array of update counts. The int elements of the array that is returned are ordered to correspond to the commands in the batch, which are ordered according to the order in which they were added to the batch.

The cancellation token can be used to can be used to request that the operation be abandoned before the http request timeout.

Namespace:  AceQL.Client.Api
Assembly:  AceQL.Client (in AceQL.Client.dll)

Syntax


public Task<int[]> ExecuteBatchAsync(
	CancellationToken cancellationToken
)

Parameters

cancellationToken
Type: CancellationToken
The cancellation instruction.

Return Value

an array of update counts containing one element for each command in the batch. The elements of the array are ordered according to the order in which commands were added to the batch.

Exceptions


ExceptionCondition
AceQL.Client.Api..::..AceQLExceptionIf any Exception occurs.