Partager via


AdoDotNetDataReader.IsNullItem Method

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

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

Syntax

'Declaration
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

Parameters

  • index
    Type: System.Int32

    Index of the data item to examine.

Return Value

Type: System.Boolean
Returns true if the item is nulla null reference (Nothing in Visual Basic), that is, unspecified; otherwise returns false.

Exceptions

Exception Condition
ArgumentOutOfRangeException

The index parameter is invalid.

Remarks

Calling this method to figure out if a value is nulla null reference (Nothing in Visual Basic) performs better than retrieving the value to see if it is equal to Value, because if it is not nulla null reference (Nothing in Visual Basic) this causes the entire value to be read from the reader.

.NET Framework Security

See Also

Reference

AdoDotNetDataReader Class

Microsoft.VisualStudio.Data.AdoDotNet Namespace