SqlCeResultSet.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)
Syntax
'Declaration
Public Overrides Function IsDBNull ( _
ordinal As Integer _
) As Boolean
'Usage
Dim instance As SqlCeResultSet
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 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.
Implements
Remarks
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.