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 服务器 - 编程 » SQL Anywhere 数据访问 API » SQL Anywhere .NET 2.0 API 参考 » iAnywhere.Data.SQLAnywhere 命名空间 (.NET 2.0) » SADataReader 类

 

IsDBNull 方法

返回表示列是否包含 NULL 值的值。

语法
Visual Basic

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

public override bool IsDBNull(
   int ordinal
);
参数
  • ordinal   从零开始的列顺序号。

返回值

如果指定的列值与 DBNull 等价,则返回 true。否则返回 false。

注释

在调用有类型 get 方法(如 GetByte、GetChar 等)之前,请调用此方法检查是否有 NULL 列值,以避免抛出异常。

另请参见