SqlCeParameter.IsNullable Property

Gets or sets a value indicating whether or not the parameter accepts null values.

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

public override bool IsNullable { get; set; }

Property Value

Type: System.Boolean
true if null values are accepted; otherwise, false. The default is false.

Implements

IDataParameter.IsNullable

The DBNull class handles null values.

The following example creates a SqlCeParameter and sets the IsNullable property.

SqlCeParameter param = cmd.CreateParameter();
param.IsNullable = true;


Show: