DataReader.IsNullItem 方法 (Int32)

指示在指定的索引数据项是否未指定的,例如,nullnull 引用(在 Visual Basic 中为 Nothing)。

命名空间:  Microsoft.VisualStudio.Data.Framework
程序集:  Microsoft.VisualStudio.Data.Framework(在 Microsoft.VisualStudio.Data.Framework.dll 中)

语法

声明
Public MustOverride Function IsNullItem ( _
    index As Integer _
) As Boolean
public abstract bool IsNullItem(
    int index
)
public:
virtual bool IsNullItem(
    int index
) abstract
abstract IsNullItem : 
        index:int -> bool
public abstract function IsNullItem(
    index : int
) : boolean

参数

  • index
    类型:Int32

    检查的数据项的索引。

返回值

类型:Boolean
true ,如果项为 nullnull 引用(在 Visual Basic 中为 Nothing),即,取消指定;否则,返回 false。

实现

IVsDataReader.IsNullItem(Int32)

备注

调用该方法假定值是否比 nullnull 引用(在 Visual Basic 中为 Nothing) 检索值提供更好的性能以查看它是否与 Value相等,因为后者整个值数据读取器实例读取。

对继承者的说明

派生类必须重写此方法。

.NET Framework 安全性

请参阅

参考

DataReader 类

IsNullItem 重载

Microsoft.VisualStudio.Data.Framework 命名空间

DBNull

IsNullItem