The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.
DbCommand::ExecuteScalarAsync Method ()
.NET Framework (current version)
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.
Assembly: System.Data (in System.Data.dll)
| Exception | Condition |
|---|---|
| DbException | An error occurred while executing the command text. |
For more information about asynchronous programming, see Asynchronous Programming.
Universal Windows Platform
Available since 10
.NET Framework
Available since 4.5
Available since 10
.NET Framework
Available since 4.5
Show: