Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.
返回表示列是否包含 NULL 值的值。
Public Overrides Function IsDBNull(ByVal ordinal As Integer) As Boolean
public override bool IsDBNull(int ordinal)
ordinal 从零开始的列顺序号。
如果指定的列值与 DBNull 等价,则返回 true。否则返回 false。
在调用有类型 get 方法(如 GetByte、GetChar 等)之前,请调用此方法检查是否有 NULL 列值,以避免抛出异常。