共用方式為


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 ,則為,否則,如果值不是 null,則第二個技術會導致整個值從讀取器讀取的節點。

.NET Framework 安全性

請參閱

參考

AdoDotNetReader 類別

IsNullItem 多載

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