Export (0) Print
Expand All

DataReader.IsNullItem Method

Indicates whether the data item at the specified index is unspecified, that is, null.

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

public abstract bool IsNullItem(
	int index
)

Parameters

index
Type: System.Int32
Index of the data item to examine.

Return Value

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

ExceptionCondition
ArgumentOutOfRangeException

The index parameter is invalid.

Calling this method to figure out if a value is null performs better than retrieving the value to see if it is equal to Value, because the latter causes the entire value to be read from the data reader instance.

Community Additions

ADD
Show:
© 2014 Microsoft