MySQL Connector/Net |
MySqlParameterCollection..::.Add Method (String, MySqlDbType, Int32, String) |
MySqlParameterCollection Class See Also Send Feedback |
Adds a MySqlParameter to the MySqlParameterCollection with the parameter name, the data type, the column length, and the source column name.
Namespace:
MySql.Data.MySqlClient
Assembly:
MySql.Data (in MySql.Data.dll) Version: 6.2.2.0
Syntax
C# |
---|
public MySqlParameter Add( string parameterName, MySqlDbType dbType, int size, string sourceColumn ) |
Visual Basic (Declaration) |
---|
Public Function Add ( _ parameterName As String, _ dbType As MySqlDbType, _ size As Integer, _ sourceColumn As String _ ) As MySqlParameter |
Visual C++ |
---|
public: MySqlParameter^ Add( String^ parameterName, MySqlDbType dbType, int size, String^ sourceColumn ) |
Parameters
- parameterName
- Type: System..::.String
The name of the parameter.
- dbType
- Type: MySql.Data.MySqlClient..::.MySqlDbType
One of the MySqlDbType values.
- size
- Type: System..::.Int32
The length of the column.
- sourceColumn
- Type: System..::.String
The name of the source column.