SqlCeParameter Constructor (String, SqlDbType, Int32)

Initializes a new instance of the SqlCeParameter class with the parameter name, data type, and length.

Namespace:  System.Data.SqlServerCe
Assembly:  System.Data.SqlServerCe (in System.Data.SqlServerCe.dll)

Syntax

'Declaration
Public Sub New ( _
    name As String, _
    dataType As SqlDbType, _
    size As Integer _
)
'Usage
Dim name As String
Dim dataType As SqlDbType
Dim size As Integer

Dim instance As New SqlCeParameter(name, dataType, _
    size)
public SqlCeParameter(
    string name,
    SqlDbType dataType,
    int size
)
public:
SqlCeParameter(
    String^ name, 
    SqlDbType dataType, 
    int size
)
new : 
        name:string * 
        dataType:SqlDbType * 
        size:int -> SqlCeParameter
public function SqlCeParameter(
    name : String, 
    dataType : SqlDbType, 
    size : int
)

Parameters

Remarks

Size is inferred from the value of the dataType parameter if it is not explicitly set in the size parameter.

Examples

The following example creates a SqlCeParameter and sets some of its properties.

Dim param As New SqlCeParameter("@Description", SqlDbType.NVarChar, 88)
param.IsNullable = True
SqlCeParameter param = new SqlCeParameter("@Description", SqlDbType.NVarChar, 88);
param.IsNullable = true;

See Also

Reference

SqlCeParameter Class

SqlCeParameter Overload

System.Data.SqlServerCe Namespace