次の方法で共有


DataReader.GetItem Method (Int32)

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

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

Syntax

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

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

Parameters

  • index
    Type: System.Int32

    Index in 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.

Implements

IVsDataReader.GetItem(Int32)

Exceptions

Exception Condition
ArgumentOutOfRangeException

The index parameter is not valid.

Permissions

See Also

Reference

DataReader Class

DataReader Members

GetItem Overload

Microsoft.VisualStudio.Data.Framework Namespace

GetItem