AdoDotNetReader.IsNullItem Method (Int32)

Indicates whether the value of the data item at the specified index is unspecified, that is, nulla null reference (Nothing in Visual Basic).

Namespace:  Microsoft.VisualStudio.Data.Framework.AdoDotNet
Assembly:  Microsoft.VisualStudio.Data.Framework (in Microsoft.VisualStudio.Data.Framework.dll)

Syntax

'Declaration
Public Overrides Function IsNullItem ( _
    index As Integer _
) As Boolean
'Usage
Dim instance As AdoDotNetReader 
Dim index As Integer 
Dim returnValue As Boolean 

returnValue = instance.IsNullItem(index)
public override bool IsNullItem(
    int index
)
public:
virtual bool IsNullItem(
    int index
) override
public override function IsNullItem(
    index : int
) : boolean

Parameters

  • index
    Type: System.Int32

    Index of the data item to examine.

Return Value

Type: System.Boolean
true if the item is null, that is, unspecified; otherwise false.

Implements

IVsDataReader.IsNullItem(Int32)

Remarks

Calling this method to determine whether a value is null performs better than retrieving the value to see whether it is equal to Value because, if the value is not null, the latter technique causes the entire value to be read from the reader.

.NET Framework Security

See Also

Reference

AdoDotNetReader Class

AdoDotNetReader Members

IsNullItem Overload

Microsoft.VisualStudio.Data.Framework.AdoDotNet Namespace