SqlCeParameter Constructor (String, SqlDbType)

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

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

public SqlCeParameter(
	string name,
	SqlDbType dataType


Type: System.String
The name of the parameter to map.
Type: System.Data.SqlDbType
One of the SqlDbType values.

The data type and, if appropriate, Size and Precision are inferred from the value of the dataType parameter.

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

SqlCeParameter param = new SqlCeParameter("@Description", SqlDbType.NVarChar);
param.Value = "garden hose";