.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+
A newer version of this page is available. Switch to the current version.

Session.ExecuteScalarAsync Method

Name Parameters Description
ExecuteScalarAsync(String, Object[], CancellationToken) sql, parameterValues, cancellationToken Executes the specified SQL query and returns the first column of the first row in the result set returned by the query.
ExecuteScalarAsync(String, String[], Object[], CancellationToken) sql, parameterNames, parameterValues, cancellationToken Asynchronously executes the specified SQL query and returns the first column of the first row in the result set returned by the query.
ExecuteScalarAsync(String, CancellationToken) sql, cancellationToken Executes the specified SQL query and returns the first column of the first row in the result set returned by the query.