Initiates the asynchronous execution of the SQL statement or stored procedure
that is described by this
MySqlCommand.
Namespace:
MySql.Data.MySqlClient
Assembly:
MySql.Data (in MySql.Data.dll) Version: 6.2.2.0
Syntax
Parameters
- callback
- Type: System..::.AsyncCallback
An AsyncCallback delegate that is invoked when the command's
execution has completed. Pass a null reference (Nothing in Visual Basic)
to indicate that no callback is required.
- stateObject
- Type: System..::.Object
A user-defined state object that is passed to the
callback procedure. Retrieve this object from within the callback procedure
using the AsyncState property.
Return Value
An
IAsyncResult that can be used to poll or wait for results,
or both; this value is also needed when invoking
EndExecuteNonQuery(IAsyncResult),
which returns the number of affected rows.
See Also