语言

PipelineBuffer.IsNull(Int32) 方法

定义

检查缓冲区列中的数据是否为空。

public:
 bool IsNull(int columnIndex);
public bool IsNull(int columnIndex);
member this.IsNull : int -> bool
Public Function IsNull (columnIndex As Integer) As Boolean

参数

columnIndex
Int32

缓冲区行中该列的索引。

返回

如果列包含空,则为真;否则,就是假的。

注解

建议在调用数据类型访问方法(如 GetBoolean,)之前调用该IsNull方法,因为如果列为 null,则PipelineBuffer会产生 。ColumnIsNullException

适用于