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