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

Exceptions

Exception Type Condition
ArgumentException

See Also

MySqlParameter Class, MySql.Data.MySqlClient Namespace, MySqlParameter Constructor Overload List

Retornar