MySqlParameter
Constructor
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.
Syntax: Visual Basic
Overloads Public Sub New( _ ByVal parameterName As String, _ ByVal dbType As MySqlDbType, _ ByVal size As Integer, _ ByVal direction As ParameterDirection, _ ByVal isNullable As Boolean, _ ByVal precision As Byte, _ ByVal scale As Byte, _ ByVal sourceColumn As String, _ ByVal sourceVersion As DataRowVersion, _ ByVal value As Object _ )
Syntax: C#
public MySqlParameter( stringparameterName, MySqlDbTypedbType, intsize, ParameterDirectiondirection, boolisNullable, byteprecision, bytescale, stringsourceColumn, DataRowVersionsourceVersion, objectvalue );
Parameters
parameterName
: The name of the parameter to map.dbType
: One of the MySqlDbType values.size
: The length of the parameter.direction
: One of the ParameterDirectionvalues.isNullable
: true if the value of the field can be null, otherwise false.precision
: The total number of digits to the left and right of the decimal point to which Value is resolved.scale
: The total number of decimal places to which Value is resolved.sourceColumn
: The name of the source column.sourceVersion
: One of the DataRowVersionvalues.value
: An Object that is the value of the MySqlParameter.
Exceptions
Exception Type | Condition |
ArgumentException |
See Also
MySqlParameter Class, MySql.Data.MySqlClient Namespace, MySqlParameter Constructor Overload List