Click or drag to resize
DataQueryBaseTQueryGetReaderFromDataSourceAsync Method
Asynchronously executes the current query over data source and returns it's results as an IDataReader. The method is effectively a wrapper around GetReaderFromDataSource.

Namespace: CMS.DataEngine
Assembly: CMS.DataEngine (in CMS.DataEngine.dll) Version: 13.0.131
Syntax
C#
protected virtual Task<IDataReader> GetReaderFromDataSourceAsync(
	CancellationToken cancellationToken
)

Parameters

cancellationToken
Type: System.ThreadingCancellationToken
The cancellation instruction.

Return Value

Type: TaskIDataReader
Returns a task returning the data reader based on GetReaderFromDataSource.
Remarks
The method returns a task returning null if the underlying call to GetReaderFromDataSource returns null.
See Also