BeginExecuteReader Method (CommandBehavior)

MySQL Connector/Net

Initiates the asynchronous execution of the SQL statement or stored procedure that is described by this MySqlCommand using one of the CommandBehavior values.

Namespace:  MySql.Data.MySqlClient
Assembly:  MySql.Data (in MySql.Data.dll) Version: 6.2.2.0

Syntax

C#
public IAsyncResult BeginExecuteReader(
	CommandBehavior behavior
)
Visual Basic (Declaration)
Public Function BeginExecuteReader ( _
	behavior As CommandBehavior _
) As IAsyncResult
Visual C++
public:
IAsyncResult^ BeginExecuteReader(
	CommandBehavior behavior
)

Parameters

behavior
Type: System.Data..::.CommandBehavior
One of the CommandBehavior values, indicating options for statement execution and data retrieval.

Return Value

An IAsyncResult that can be used to poll, wait for results, or both; this value is also needed when invoking EndExecuteReader, which returns a MySqlDataReader instance that can be used to retrieve the returned rows.

See Also