MySQL Connector/Net
MySqlCommandBeginExecuteNonQuery Method (AsyncCallback, Object) |
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.9.9

public IAsyncResult BeginExecuteNonQuery( AsyncCallback callback, Object stateObject )
Public Function BeginExecuteNonQuery ( callback As AsyncCallback, stateObject As Object ) As IAsyncResult
public: IAsyncResult^ BeginExecuteNonQuery( AsyncCallback^ callback, Object^ stateObject )
member BeginExecuteNonQuery : callback : AsyncCallback * stateObject : Object -> IAsyncResult
Parameters
- callback
- Type: SystemAsyncCallback
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: SystemObject
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
Type: IAsyncResultAn 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.
