Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.

SQL Anywhere 10.0.1 » SQL Anywhere Server - Programming » SQL Anywhere .NET 2.0 API Reference » SADataReader class

GetValues method Next Page

IsDBNull method


Returns a value indicating whether the column contains NULL values.

Syntax

Visual Basic

Public Overrides Function IsDBNull( _
ByVal ordinal As Integer _
) As Boolean

C#

public override bool IsDBNull(
int ordinal
);

Parameters
Return value

Returns true if the specified column value is equivalent to DBNull. Otherwise, it returns false.

Remarks

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 exception.

See also