dotConnect for SQL Server Documentation
Devart.Data.SqlServer Namespace / SqlParameter Class / SqlParameter Constructor / SqlParameter Constructor(String,SqlType,Int32,ParameterDirection,Boolean,Byte,Byte,String,DataRowVersion,Boolean,Object)
The name of the parameter.
One of the SqlType values.
The maximum size, in bytes, of the data within the column.
One of the System.Data.ParameterDirection values.
true if the value of the field can be null; otherwise, false.
The total number of digits to the left and right of the decimal point to which Value is resolved.
The total number of decimal places to which Value is resolved.
The name of the source column.
One of the System.Data.DataRowVersion values.
Specifies whether the source column is nullable.
An Object that is the value of the SqlParameter.

SqlParameter Constructor(String,SqlType,Int32,ParameterDirection,Boolean,Byte,Byte,String,DataRowVersion,Boolean,Object)
Initializes a new instance of the SqlParameter class with the parameter name, data type, width, source column name, parameter direction, numeric precision, and other properties.
Syntax
'Declaration
 
Public Function New( _
   ByVal parameterName As String, _
   ByVal sqlDbType As SqlType, _
   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 sourceColumnNullMapping As Boolean, _
   ByVal value As Object _
)
 

Parameters

parameterName
The name of the parameter.
sqlDbType
One of the SqlType values.
size
The maximum size, in bytes, of the data within the column.
direction
One of the System.Data.ParameterDirection values.
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 System.Data.DataRowVersion values.
sourceColumnNullMapping
Specifies whether the source column is nullable.
value
An Object that is the value of the SqlParameter.
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also