DbCommand.ExecuteNonQueryAsync Method ()
.NET Framework (current version)
![]() |
---|
The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience. |
An asynchronous version of ExecuteNonQuery, which executes a SQL statement against a connection object.
Invokes ExecuteNonQueryAsync 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: