SqlCeParameter.IsNullable Property

Gets or sets a value indicating whether or not the parameter accepts a null reference (Nothing in Visual Basic) values.

Namespace: System.Data.SqlServerCe
Assembly: System.Data.SqlServerCe (in system.data.sqlserverce.dll)

Syntax

'Declaration
Public Overrides Property IsNullable As Boolean
'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;
/** @property */
public boolean get_IsNullable ()

/** @property */
public void set_IsNullable (boolean value)
public override function get IsNullable () : boolean

public override function set IsNullable (value : boolean)

Property Value

true if a null reference (Nothing in Visual Basic) values are accepted; otherwise, false. The default is false.

Remarks

The DBNull class handles a null reference (Nothing in Visual Basic) values.

Example

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;

.NET Framework Security

  • Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see .

Platforms

Windows CE, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows XP Professional x64 Edition, Windows XP SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

Version Information

.NET Compact Framework

Supported in: 2.0, 1.0

See Also

Reference

SqlCeParameter Class
SqlCeParameter Members
System.Data.SqlServerCe Namespace