[]
An asynchronous version of method ExecuteScalar() that 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.
public override Task<object> ExecuteScalarAsync(CancellationToken cancellationToken)
Public Overrides Function ExecuteScalarAsync(cancellationToken As CancellationToken) As Task(Of Object)
| Type | Name | Description |
|---|---|---|
| CancellationToken | cancellationToken | The cancellation token to abort the query execution at any moment. |
| Type | Description |
|---|---|
| Task<object> | The scalar result. |