AceQL HTTP C# Client SDK v7.8

AceQLCommand..::..ExecuteScalar Method (CancellationToken)

Executes the query, and returns the first column of the first row in the result set returned by the query. Additional columns or rows are ignored.

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<Object> ExecuteScalar(
	CancellationToken cancellationToken
)

Parameters

cancellationToken
Type: CancellationToken
The cancellation instruction.

Return Value

The first column of the first row in the result set, or a null reference if the result set is empty.

Exceptions


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