DataConnector | ComponentOne
C1.AdoNet.D365S Assembly / C1.AdoNet.D365S Namespace / C1D365SCommand Class / ExecuteScalarAsync Method / ExecuteScalarAsync(CancellationToken) Method
The token to monitor for cancellation requests.

In This Topic
    ExecuteScalarAsync(CancellationToken) Method
    In This Topic
    An asynchronous version of C1.DataConnector.AdoNet.DbCommandWrap<TInnerConnection,TInnerCommand,TInnerParameter>.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 C1.DataConnector.AdoNet.DbCommandWrap<TInnerConnection,TInnerCommand,TInnerParameter>.ExecuteScalarAsync with System.Threading.CancellationToken.None.
    Syntax
    'Declaration
     
    Public Overloads Function ExecuteScalarAsync( _
       ByVal cancellationToken As CancellationToken _
    ) As Task(Of Object)
    public Task<object> ExecuteScalarAsync( 
       CancellationToken cancellationToken
    )

    Parameters

    cancellationToken
    The token to monitor for cancellation requests.
    See Also