Share via


DataReader.GetItem Method (Int32)

Retrieves the value of the item at the specified index in the current block of data.

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

Syntax

'Declaration
Public MustOverride Function GetItem ( _
    index As Integer _
) As Object
public abstract Object GetItem(
    int index
)
public:
virtual Object^ GetItem(
    int index
) abstract
abstract GetItem : 
        index:int -> Object
public abstract function GetItem(
    index : int
) : Object

Parameters

  • index
    Type: System.Int32

    Index into the current block of the data item at which to retrieve the integer value.

Return Value

Type: System.Object
Returns an integer value from the specified index in the current block of data.

Exceptions

Exception Condition
ArgumentOutOfRangeException

The index parameter is invalid.

.NET Framework Security

See Also

Reference

DataReader Class

GetItem Overload

Microsoft.VisualStudio.Data Namespace

GetItem