Click or drag to resize
GeneralConnectionExecuteNonQueryAsync Method

An asynchronous version of ExecuteNonQuery(QueryParameters) which executes the query asynchronously and returns the number of rows affected.

The cancellation token can be used to request that the operation be abandoned before the command timeout elapses. Exceptions will be reported via the returned Task object.

Namespace: CMS.DataEngine
Assembly: CMS.DataEngine (in CMS.DataEngine.dll) Version: 13.0.131
Syntax
C#
public virtual Task<int> ExecuteNonQueryAsync(
	QueryParameters query,
	CancellationToken cancellationToken
)

Parameters

query
Type: CMS.DataEngineQueryParameters
Query parameters.
cancellationToken
Type: System.ThreadingCancellationToken
The cancellation instruction.

Return Value

Type: TaskInt32
A task representing the asynchronous operation.
See Also