MySQL Connector/Net
MySqlParameterCollectionAdd Method (String, MySqlDbType, Int32) |
Adds a MySqlParameter to the MySqlParameterCollection with the parameter name, the data type, and the column length.
Namespace: MySql.Data.MySqlClient
Assembly: MySql.Data (in MySql.Data.dll) Version: 6.9.9

public MySqlParameter Add( string parameterName, MySqlDbType dbType, int size )
Public Function Add ( parameterName As String, dbType As MySqlDbType, size As Integer ) As MySqlParameter
public: MySqlParameter^ Add( String^ parameterName, MySqlDbType dbType, int size )
member Add : parameterName : string * dbType : MySqlDbType * size : int -> MySqlParameter
Parameters
- parameterName
- Type: SystemString
The name of the parameter. - dbType
- Type: MySql.Data.MySqlClientMySqlDbType
One of the MySqlDbType values. - size
- Type: SystemInt32
The length of the column.
Return Value
Type: MySqlParameterThe newly added MySqlParameter object.
