DB2®ResultSet.IsDBNull Method

Gets a value indicating whether the column contains non-existent or missing values.

Namespace:
IBM.Data.DB2
Assembly:
IBM.Data.DB2 (in IBM.Data.DB2.dll)

Syntax


[Visual Basic]
Public Function IsDBNull( _
   ByVal i As Integer _
) As Boolean
[C#]
public bool IsDBNull(
   int i
);
[C++]
public: bool IsDBNull(
   int i
);
[JScript]
public function IsDBNull(
   i : int
) : Boolean;

Parameters

i
The zero-based column ordinal.

Return value

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

Remarks

To avoid raising an error, call this method to check for null column values before calling the typed Get methods