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

SQL Anywhere 11.0.1 » SQL Anywhere Server - Programming » SQL Anywhere Data Access APIs » SQL Anywhere .NET 2.0 API reference » iAnywhere.Data.SQLAnywhere namespace (.NET 2.0) » SADataReader class

 

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
  • ordinal   The zero-based column ordinal.

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