Share via


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)

Syntax

'Declaration
Public Overrides Property IsNullable As Boolean
    Get
    Set
'Usage
Dim instance As SqlCeParameter
Dim value As Boolean

value = instance.IsNullable

instance.IsNullable = value
public override bool IsNullable { get; set; }
public:
virtual property bool IsNullable {
    bool get () override;
    void set (bool value) override;
}
abstract IsNullable : bool with get, set
override IsNullable : bool with get, set
override function get IsNullable () : boolean
override function set IsNullable (value : boolean)

Property Value

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

Implements

IDataParameter. . :: . .IsNullable

Remarks

The DBNull class handles null values.

Examples

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

Dim param As SqlCeParameter = cmd.CreateParameter()
param.IsNullable = True
SqlCeParameter param = cmd.CreateParameter();
param.IsNullable = true;

See Also

Reference

SqlCeParameter Class

SqlCeParameter Members

System.Data.SqlServerCe Namespace