AdoDotNetReader.IsNullItem 方法 (Int32)

指示数据项的值位于指定索引处的是否未指定的,也就是说,nullnull 引用(在 Visual Basic 中为 Nothing)。

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

语法

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

参数

返回值

类型:System.Boolean
true ,如果该项目是空的,也就是说,未指定;否则 false。

实现

IVsDataReader.IsNullItem(Int32)

备注

调用此方法来确定值是否为null的更好地检索值执行查看它是否与 Value 相等,因为,因此,如果该值不为空,后一种技术会导致整个值从读取器读取。

.NET Framework 安全性

请参见

参考

AdoDotNetReader 类

IsNullItem 重载

Microsoft.VisualStudio.Data.Framework.AdoDotNet 命名空间