DataConnector | ComponentOne
C1.AdoNet.D365S Assembly / C1.DataConnector.AdoNet Namespace / DbCommandWrap<TInnerConnection,TInnerCommand,TInnerParameter> 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 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 ExecuteScalarAsync(CancellationToken) with System.Threading.CancellationToken.None.
    Public Overloads Overrides Function ExecuteScalarAsync( _
       ByVal cancellationToken As System.Threading.CancellationToken _
    ) As System.Threading.Tasks.Task(Of Object)
    public override System.Threading.Tasks.Task<object> ExecuteScalarAsync( 
       System.Threading.CancellationToken cancellationToken


    The token to monitor for cancellation requests.
    See Also