MySQL Connector/Net |
MySqlHelper..::.ExecuteReader Method (String, String, array<MySqlParameter>[]()[]) |
MySqlHelper Class See Also Send Feedback |
Executes a single command against a MySQL database.
Namespace:
MySql.Data.MySqlClient
Assembly:
MySql.Data (in MySql.Data.dll) Version: 6.2.2.0
Syntax
C# |
---|
public static MySqlDataReader ExecuteReader( string connectionString, string commandText, params MySqlParameter[] commandParameters ) |
Visual Basic (Declaration) |
---|
Public Shared Function ExecuteReader ( _ connectionString As String, _ commandText As String, _ ParamArray commandParameters As MySqlParameter() _ ) As MySqlDataReader |
Visual C++ |
---|
public: static MySqlDataReader^ ExecuteReader( String^ connectionString, String^ commandText, ... array<MySqlParameter^>^ commandParameters ) |
Parameters
- connectionString
- Type: System..::.String
Settings to use for this command
- commandText
- Type: System..::.String
Command text to use
- commandParameters
- Type: array<
MySql.Data.MySqlClient..::.MySqlParameter
>[]()[]
Array of MySqlParameter objects to use with the command