Click or drag to resize
GeneralConnectionExecuteReaderAsync Method

An asynchronous version of ExecuteReader(QueryParameters, CommandBehavior) which executes the query asynchronously and returns result as a DbDataReader.

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: 11.0.0
Syntax
C#
public virtual Task<DbDataReader> ExecuteReaderAsync(
	QueryParameters query,
	CommandBehavior commandBehavior,
	CancellationToken cancellationToken
)

Parameters

query
Type: CMS.DataEngineQueryParameters
Query parameters.
commandBehavior
Type: System.DataCommandBehavior
Command behavior.
cancellationToken
Type: System.ThreadingCancellationToken
The cancellation instruction.

Return Value

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