Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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)
Syntax
'Declaration
Public Overrides Function IsDBNull ( _
    ordinal As Integer _
) As Boolean
'Usage
Dim instance As SqlCeDataReader
Dim ordinal As Integer
Dim returnValue As Boolean
returnValue = instance.IsDBNull(ordinal)
public override bool IsDBNull(
    int ordinal
)
public:
virtual bool IsDBNull(
    int ordinal
) override
abstract IsDBNull : 
        ordinal:int -> bool 
override IsDBNull : 
        ordinal:int -> bool 
public override function IsDBNull(
    ordinal : int
) : boolean
Parameters
- ordinal
Type: System. . :: . .Int32
The zero-based column ordinal. 
Return Value
Type: System. . :: . .Boolean
true if the specified column value is equivalent to DBNull; otherwise, false.
Implements
IDataRecord. . :: . .IsDBNull(Int32)
Remarks
Call this method to check for null column values before calling the typed get methods (for example, GetByte, GetGuid, and so on) to avoid raising an error.