Freigeben über


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)

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)
Not applicable.

Property Value

true if null values are accepted; otherwise, false. The default is false.

Remarks

The DBNull class handles null 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;

Platforms

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

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

Version Information

.NET Framework

Supported in: 3.0

.NET Compact Framework

Supported in: 2.0, 1.0

See Also

Reference

SqlCeParameter Class
SqlCeParameter Members
System.Data.SqlServerCe Namespace