IsDBNull Method

Determines if the field at the specified ordinal position is null.

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 SqlCeResultSet
Dim ordinal As Integer
Dim returnValue As Boolean

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


  • ordinal
    Type: System. . :: . .Int32
    The ordinal position of the column from which to retrieve the value.

Return Value

Type: System. . :: . .Boolean
True if the specified field is null; otherwise, false.


IDataRecord. . :: . .IsDBNull(Int32)


Returns true only if the corresponding value is equivalent to DBNull or if the object implements IsNullable and IsNull returns true.

Returns false in any other case, including null references and empty strings.

An IndexOutOfRangeException is thrown if no field exists at the specified index.

See Also


SqlCeResultSet Class

SqlCeResultSet Members

System.Data.SqlServerCe Namespace