共用方式為


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
    型別:System.Int32
    要檢查的資料項目的索引。

傳回值

型別:System.Boolean
true ,如果項目是空的,也就是說,未指定;否則 false。

實作

IVsDataReader.IsNullItem(Int32)

備註

呼叫這個方法會判斷值是否為 Null 優於擷取值來執行是否與 Value 相等,因為,因此,如果值不是 null,則第二種技術會導致整個值從讀取器讀取。

.NET Framework 安全性

請參閱

參考

AdoDotNetReader 類別

IsNullItem 多載

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