[]
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 None.
public override Task<object> ExecuteScalarAsync(CancellationToken cancellationToken)
Type | Name | Description |
---|---|---|
CancellationToken | cancellationToken | The token to monitor for cancellation requests. |
Type | Description |
---|---|
Task<object> |