IVsDataReader.IsNullItem 方法 (Int32)
當由類別實作時,表示在指定之索引上的資料項目是未指定的,也就是說, nullNull 參照 (即 Visual Basic 中的 Nothing)。
命名空間: Microsoft.VisualStudio.Data.Services.SupportEntities
組件: Microsoft.VisualStudio.Data.Services (在 Microsoft.VisualStudio.Data.Services.dll 中)
語法
'宣告
Function IsNullItem ( _
index As Integer _
) As Boolean
bool IsNullItem(
int index
)
bool IsNullItem(
int index
)
abstract IsNullItem :
index:int -> bool
function IsNullItem(
index : int
) : boolean
參數
- index
型別:System.Int32
要檢查的資料項目的索引。
傳回值
型別:System.Boolean
true ,如果項目是 nullNull 參照 (即 Visual Basic 中的 Nothing),也就是說,未指定;否則, false。
備註
呼叫這個方法來判斷值是否為 nullNull 參照 (即 Visual Basic 中的 Nothing) 優於擷取值執行判斷它是否與 Value相等,,因為後者會導致整個值從資料讀取器執行個體讀取。
.NET Framework 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。