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

参数

  • index
    类型:Int32

    检查的数据项的索引。

返回值

类型:Boolean
true ,如果项为空,即,取消指定;否则为 false。

实现

IVsDataReader.IsNullItem(Int32)

备注

调用此方法来确定值是否为空的性能高于检索值执行查看它是否与 Value 相等,因为,如果值不是空的,之后技术会导致整个值。读取器读取。

.NET Framework 安全性

请参阅

参考

AdoDotNetReader 类

IsNullItem 重载

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