MySqlParameter Constructor (String, MySqlDbType, Int32, String)

MySQL Connector/Net

Initializes a new instance of the MySqlParameter class with the parameter name, the MySqlDbType, the size, 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(
	string parameterName,
	MySqlDbType dbType,
	int size,
	string sourceColumn
)
Visual Basic (Declaration)
Public Sub New ( _
	parameterName As String, _
	dbType As MySqlDbType, _
	size As Integer, _
	sourceColumn As String _
)
Visual C++
public:
MySqlParameter(
	String^ parameterName, 
	MySqlDbType dbType, 
	int size, 
	String^ sourceColumn
)

Parameters

parameterName
Type: System..::.String
The name of the parameter to map.
dbType
Type: MySql.Data.MySqlClient..::.MySqlDbType
One of the MySqlDbType values.
size
Type: System..::.Int32
The length of the parameter.
sourceColumn
Type: System..::.String
The name of the source column.

See Also