System.Data.OleDb Namespace OleDbDataReader Class
Checks whether the column contains non-existent or missing values.
[ VB ]
NotOverridable Public Function IsDBNull ( _
ByVal index As Integer _
) As Boolean
[ C# ]
public bool IsDBNull (
int index
);
[ C++ ]
public: __sealed bool IsDBNull (
int index
);
[ JScript ]
public function IsDBNull (
index : int
) : Boolean
- index
- The zero-based column ordinal.
This method returns only a boolean value: true if the specified column is equivalent to DBNull; otherwise, false.
The property is read only with no default value.
Call this method to check for null column values before calling the typed get methods ( for example, GetByte, GetChar, and so on ) to avoid raising an error.
OleDbDataReader Members