Export (0) Print
Expand All

OracleDataReader.IsDBNull Method

Note: This namespace, class, or member is supported only in version 1.1 of the .NET Framework.

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

[Visual Basic]
Public Overridable Function IsDBNull( _
   ByVal i As Integer _
) As Boolean Implements IDataRecord.IsDBNull
[C#]
public virtual bool IsDBNull(
 int i
);
[C++]
public: virtual 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.

Implements

IDataRecord.IsDBNull

Remarks

To avoid raising an error, call this method to check for null column values before calling the typed Get methods (for example, GetByte, GetChar, and so on).

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

.NET Framework Security: 

See Also

OracleDataReader Class | OracleDataReader Members | System.Data.OracleClient Namespace

Show:
© 2014 Microsoft