DataConnector | ComponentOne
C1.AdoNet.QuickBooksOnline Assembly / C1.DataConnector.AdoNet Namespace / C1CommandBase<TCommandImpl> 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<TCommandImpl>)
    In This Topic
    An asynchronous version of method ExecuteDbDataReader that executes the command text against the connection.
    Syntax
    'Declaration
     
    Protected Overridable Function ExecuteDbDataReaderAsync( _
       ByVal behavior As CommandBehavior, _
       ByVal cancellationToken As CancellationToken _
    ) As Task(Of DbDataReader)
    protected virtual 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