AdoDotNetDataReader.GetItem Method (Int32)

Retrieves an object instance representing the retrievable item as determined by an index into the current block of data.

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

Syntax

'宣言
Public Overrides Function GetItem ( _
    index As Integer _
) As Object
'使用
Dim instance As AdoDotNetDataReader
Dim index As Integer
Dim returnValue As Object

returnValue = instance.GetItem(index)
public override Object GetItem(
    int index
)
public:
virtual Object^ GetItem(
    int index
) override
public override function GetItem(
    index : int
) : Object

Parameters

  • index
    Type: System.Int32

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

Return Value

Type: System.Object

Returns an object representing the item at the specified index.

Exceptions

Exception Condition
ArgumentOutOfRangeException

The index parameter is invalid.

Permissions

See Also

Reference

AdoDotNetDataReader Class

AdoDotNetDataReader Members

GetItem Overload

Microsoft.VisualStudio.Data.AdoDotNet Namespace

GetItem