.NET Framework 4.6 and 4.5
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 with CancellationToken.None.
Public Function ExecuteScalarAsync As Task(Of Object)
An error occurred while executing the command text.
Supported in: 4.6, 4.5