MySqlParameter Constructor (String, MySqlDbType, Int32, ParameterDirection, Boolean, Byte, Byte, String, DataRowVersion, Object)

MySQL Connector/Net

MySqlParameter Constructor (String, MySqlDbType, Int32, ParameterDirection, Boolean, Byte, Byte, String, DataRowVersion, Object)
Initializes a new instance of the MySqlParameter class with the parameter name, the type of the parameter, the size of the parameter, a ParameterDirection, the precision of the parameter, the scale of the parameter, the source column, a DataRowVersion to use, and the value of the parameter.

Namespace: MySql.Data.MySqlClient
Assembly: MySql.Data (in MySql.Data.dll) Version: 6.9.9
Syntax
public MySqlParameter(
	string parameterName,
	MySqlDbType dbType,
	int size,
	ParameterDirection direction,
	bool isNullable,
	byte precision,
	byte scale,
	string sourceColumn,
	DataRowVersion sourceVersion,
	Object value
)
Public Sub New ( 
	parameterName As String,
	dbType As MySqlDbType,
	size As Integer,
	direction As ParameterDirection,
	isNullable As Boolean,
	precision As Byte,
	scale As Byte,
	sourceColumn As String,
	sourceVersion As DataRowVersion,
	value As Object
)
public:
MySqlParameter(
	String^ parameterName, 
	MySqlDbType dbType, 
	int size, 
	ParameterDirection direction, 
	bool isNullable, 
	unsigned char precision, 
	unsigned char scale, 
	String^ sourceColumn, 
	DataRowVersion sourceVersion, 
	Object^ value
)
new : 
        parameterName : string * 
        dbType : MySqlDbType * 
        size : int * 
        direction : ParameterDirection * 
        isNullable : bool * 
        precision : byte * 
        scale : byte * 
        sourceColumn : string * 
        sourceVersion : DataRowVersion * 
        value : Object -> MySqlParameter

Parameters

parameterName
Type: SystemString
The name of the parameter to map.
dbType
Type: MySql.Data.MySqlClientMySqlDbType
One of the MySqlDbType values.
size
Type: SystemInt32
The length of the parameter.
direction
Type: System.DataParameterDirection
One of the ParameterDirection values.
isNullable
Type: SystemBoolean
true if the value of the field can be null, otherwise false.
precision
Type: SystemByte
The total number of digits to the left and right of the decimal point to which Value is resolved.
scale
Type: SystemByte
The total number of decimal places to which Value is resolved.
sourceColumn
Type: SystemString
The name of the source column.
sourceVersion
Type: System.DataDataRowVersion
One of the DataRowVersion values.
value
Type: SystemObject
An Object that is the value of the MySqlParameter.
Exceptions
ExceptionCondition
ArgumentException
See Also