VistaDB 6
VistaDB.Provider Namespace / VistaDBCommand Class / ExecuteReaderAsync Method / ExecuteReaderAsync(CommandBehavior) Method
One of the CommandBehavior values.


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

    Parameters

    behavior
    One of the CommandBehavior values.

    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