DataConnector | ComponentOne
C1.AdoNet.GoogleAnalytics Assembly / C1.AdoNet.GoogleAnalytics Namespace / C1GoogleAnalyticsCommand Class / ExecuteScalarAsync Method / ExecuteScalarAsync(CancellationToken) Method
The cancellation token to abort the query execution at any moment.

In This Topic
    ExecuteScalarAsync(CancellationToken) Method
    In This Topic
    An asynchronous version of method C1.DataConnector.AdoNet.C1CommandBase.ExecuteScalar that allows the execution of a query that returns a 1x1 result table.
    Syntax
    'Declaration
     
    Public Overloads Function ExecuteScalarAsync( _
       ByVal cancellationToken As CancellationToken _
    ) As Task(Of Object)
    public Task<object> ExecuteScalarAsync( 
       CancellationToken cancellationToken
    )

    Parameters

    cancellationToken
    The cancellation token to abort the query execution at any moment.

    Return Value

    The scalar result.
    See Also