DataReader.IsNullItem 方法 (String)

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

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

语法

声明
Public Overridable Function IsNullItem ( _
    name As String _
) As Boolean
public virtual bool IsNullItem(
    string name
)
public:
virtual bool IsNullItem(
    String^ name
)
abstract IsNullItem : 
        name:string -> bool  
override IsNullItem : 
        name:string -> bool
public function IsNullItem(
    name : String
) : boolean

参数

  • name
    类型:String

    检查的数据项的名称。

返回值

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

实现

IVsDataReader.IsNullItem(String)

备注

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

此方法调用的索引获取与 GetItemIndex 对应项名称传递此索引为 IsNullItem 检索请求字节数原始的二进制数据。

.NET Framework 安全性

请参阅

参考

DataReader 类

IsNullItem 重载

Microsoft.VisualStudio.Data.Framework 命名空间

DBNull

IsNullItem