System.Data.DataTableReader.IsDBNull Method

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

Syntax

public override bool IsDBNull (int i)

Parameters

i
Documentation for this section has not yet been entered.

Returns

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

Remarks

Call this method to see if there are null column values before calling the typed get methods (for example, DataTableReader.GetByte(int), DataTableReader.GetChar(int), and so on) to avoid raising an error.

Requirements

Namespace: System.Data
Assembly: System.Data (in System.Data.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0