VistaDB 6
VistaDB.Provider Namespace / VistaDBCommand Class / ExecuteReaderAsync Method / ExecuteReaderAsync(CommandBehavior,CancellationToken) Method
One of the CommandBehavior values.
A CancellationToken by which to signal cancellation of this operation.


In This Topic
    ExecuteReaderAsync(CommandBehavior,CancellationToken) Method
    In This Topic
    Executes the CommandText against the Connection, and returns a VistaDBDataReader using one of the CommandBehavior values, asynchronously.
    Syntax
    'Declaration
     
    
    <System.Runtime.CompilerServices.AsyncStateMachineAttribute(VistaDB.Provider.VistaDBCommand/d__59)> 
    Public Overloads Shadows Function ExecuteReaderAsync( _ 
       ByVal behavior As System.Data.CommandBehavior, _ 
       ByVal cancellationToken As System.Threading.CancellationToken _ 
    ) As System.Threading.Tasks.Task(Of VistaDBDataReader)
    'Usage
     
    
    Dim instance As VistaDBCommand
    Dim behavior As System.Data.CommandBehavior
    Dim cancellationToken As System.Threading.CancellationToken
    Dim value As System.Threading.Tasks.Task(Of VistaDBDataReader)
     
    value = instance.ExecuteReaderAsync(behavior, cancellationToken)
    [System.Runtime.CompilerServices.AsyncStateMachine(VistaDB.Provider.VistaDBCommand/d__59)] 
    public new System.Threading.Tasks.Task<VistaDBDataReader> ExecuteReaderAsync( 
       System.Data.CommandBehavior behavior, 
       System.Threading.CancellationToken cancellationToken 
    )

    Parameters

    behavior
    One of the CommandBehavior values.
    cancellationToken
    A CancellationToken by which to signal cancellation of this operation.

    Return Value

    A Task providing a VistaDBDataReader object.
    Requirements

    Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also