Windows apps
Collapse the table of content
Expand the table of content
Information
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::ExecuteNonQueryAsync Method ()

.NET Framework (current version)
 

An asynchronous version of ExecuteNonQuery, which executes a SQL statement against a connection object.

Invokes ExecuteNonQueryAsync with CancellationToken.None.

Namespace:   System.Data.Common
Assembly:  System.Data (in System.Data.dll)

public:
Task<int>^ ExecuteNonQueryAsync()

Return Value

Type: System.Threading.Tasks::Task<Int32>^

A task representing the asynchronous operation.

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
Return to top
Show:
© 2017 Microsoft