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


In This Topic
    ExecuteReaderAsync(CancellationToken) 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__58)> 
    Public Overloads Shadows Function ExecuteReaderAsync( _ 
       ByVal cancellationToken As System.Threading.CancellationToken _ 
    ) As System.Threading.Tasks.Task(Of VistaDBDataReader)
    'Usage
     
    
    Dim instance As VistaDBCommand
    Dim cancellationToken As System.Threading.CancellationToken
    Dim value As System.Threading.Tasks.Task(Of VistaDBDataReader)
     
    value = instance.ExecuteReaderAsync(cancellationToken)
    [System.Runtime.CompilerServices.AsyncStateMachine(VistaDB.Provider.VistaDBCommand/d__58)] 
    public new System.Threading.Tasks.Task<VistaDBDataReader> ExecuteReaderAsync( 
       System.Threading.CancellationToken cancellationToken 
    )

    Parameters

    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