MySQL Connector/Net |
MySqlHelper..::.ExecuteDataset Method (MySqlConnection, String, array<MySqlParameter>[]()[]) |
MySqlHelper Class See Also Send Feedback |
Executes a single SQL command and returns the resultset in a DataSet.
The state of the MySqlConnection object remains unchanged after execution
of this method.
Namespace:
MySql.Data.MySqlClient
Assembly:
MySql.Data (in MySql.Data.dll) Version: 6.2.2.0
Syntax
C# |
---|
public static DataSet ExecuteDataset( MySqlConnection connection, string commandText, params MySqlParameter[] commandParameters ) |
Visual Basic (Declaration) |
---|
Public Shared Function ExecuteDataset ( _ connection As MySqlConnection, _ commandText As String, _ ParamArray commandParameters As MySqlParameter() _ ) As DataSet |
Visual C++ |
---|
public: static DataSet^ ExecuteDataset( MySqlConnection^ connection, String^ commandText, ... array<MySqlParameter^>^ commandParameters ) |
Parameters
- connection
- Type: MySql.Data.MySqlClient..::.MySqlConnection
MySqlConnection object to use
- commandText
- Type: System..::.String
Command to execute
- commandParameters
- Type: array<
MySql.Data.MySqlClient..::.MySqlParameter
>[]()[]
Parameters to use for the command