DataConnector | ComponentOne
C1.AdoNet.Magento Assembly / C1.DataConnector.AdoNet Namespace / C1CommandBase Class / ExecuteDbDataReaderAsync Method
An instance of System.Data.CommandBehavior.
The cancellation token to abort the query execution at any moment.

In This Topic
    ExecuteDbDataReaderAsync Method (C1CommandBase)
    In This Topic
    An asynchronous version of method ExecuteDbDataReader that executes the command text against the connection.
    Syntax
    'Declaration
     
    Protected Overrides Function ExecuteDbDataReaderAsync( _
       ByVal behavior As CommandBehavior, _
       ByVal cancellationToken As CancellationToken _
    ) As Task(Of DbDataReader)
    protected override Task<DbDataReader> ExecuteDbDataReaderAsync( 
       CommandBehavior behavior,
       CancellationToken cancellationToken
    )

    Parameters

    behavior
    An instance of System.Data.CommandBehavior.
    cancellationToken
    The cancellation token to abort the query execution at any moment.

    Return Value

    A task representing the asynchronous operation. The task generic parameter is a DbDataReader representing the table result of the query execution.
    See Also