SqlCeDataReader.IsDBNull Method

Gets a value indicating whether the column contains nonexistent or missing values.

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


Public Overrides Function IsDBNull ( _
    ordinal As Integer _
) As Boolean
Dim instance As SqlCeDataReader
Dim ordinal As Integer
Dim returnValue As Boolean

returnValue = instance.IsDBNull(ordinal)
public override bool IsDBNull (
    int ordinal
virtual bool IsDBNull (
    int ordinal
) override
public boolean IsDBNull (
    int ordinal
public override function IsDBNull (
    ordinal : int
) : boolean


  • ordinal
    The zero-based column ordinal.

Return Value

true if the specified column value is equivalent to DBNull; otherwise, false.


Call this method to check for a null reference (Nothing in Visual Basic) column values before calling the typed get methods (for example, GetByte, GetGuid, and so on) to avoid raising an error.

.NET Framework Security

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


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


SqlCeDataReader Class
SqlCeDataReader Members
System.Data.SqlServerCe Namespace