VistaDB 6
VistaDB.Provider Namespace / VistaDBCommand Class / ExecuteScalarAsync Method / ExecuteScalarAsync() Method


In This Topic
    ExecuteScalarAsync() Method
    In This Topic
    An asynchronous version of System.Data.Common.DbCommand.ExecuteScalar, which executes the query and returns the first column of the first row in the result set returned by the query. All other columns and rows are ignored. Invokes System.Data.Common.DbCommand.ExecuteScalarAsync(System.Threading.CancellationToken) with CancellationToken.None.
    Syntax
    'Declaration
     
    
    Public Overloads Function ExecuteScalarAsync() As System.Threading.Tasks.Task(Of Object)
    'Usage
     
    
    Dim instance As VistaDBCommand
    Dim value As System.Threading.Tasks.Task(Of Object)
     
    value = instance.ExecuteScalarAsync()
    public System.Threading.Tasks.Task<object> ExecuteScalarAsync()

    Return Value

    A task representing the asynchronous operation.
    Exceptions
    ExceptionDescription
    An error occurred while executing the command text.
    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