Partilhar via


SqlCeParameter Constructor (String, SqlDbType, Int32, Boolean, Byte, Byte, String, DataRowVersion, Object)

Note: This namespace, class, or member is supported only in version 1.1 of the .NET Framework.

Initializes a new instance of the SqlCeParameter class with the parameter name, data type, length, source column name, parameter direction, numeric precision, and other properties. SQL Server CE only supports input parameters.

  [Visual Basic]
  Public Sub New( _
   ByVal 
  parameterName
   As String, _
   ByVal dbType As SqlDbType, _
   ByVal size As Integer, _
   ByVal isNullable As Boolean, _
   ByVal precision As Byte, _
   ByVal scale As Byte, _
   ByVal srcColumn As String, _
   ByVal srcVersion As DataRowVersion, _
   ByVal value As Object _
)
[C#]
public SqlCeParameter(
   string parameterName,SqlDbType dbType,int size,bool isNullable,byte precision,byte scale,string srcColumn,DataRowVersion srcVersion,object value
);
[C++]
public: SqlCeParameter(
   String* parameterName,SqlDbType dbType,int size,bool isNullable,unsigned char precision,unsigned char scale,String* srcColumn,DataRowVersion srcVersion,Object* value
);
[JScript]
public function SqlCeParameter(
   parameterName : String,
 dbType : SqlDbType,
 size : int,
 isNullable : Boolean,
 precision : Byte,
 scale : Byte,
 srcColumn : String,
 srcVersion : DataRowVersion,
 value : Object);

Parameters

  • parameterName
    The name of the parameter.
  • dbType
    One of the SqlDbType values.
  • size
    The length of the parameter.
  • 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.
  • srcColumn
    The name of the source column.
  • srcVersion
    One of the DataRowVersion values.
  • value
    An Object that is the value of the SqlCeParameter.

Remarks

Size and Precision are inferred from the value of the dataType parameter if they are not explicitly set in the size and precision parameters.

Requirements

Platforms: .NET Compact Framework

.NET Framework Security:

See Also

SqlCeParameter Class | SqlCeParameter Members | System.Data.SqlServerCe Namespace | SqlCeParameter Constructor Overload List

Syntax based on .NET Framework version 1.1.
Documentation version 1.1.1.

Send comments on this topic.

© Microsoft Corporation. All rights reserved.