Share via


IDataReader.GetValue(Int32) Method

Definition

Return the value of the specified field.

public:
 System::Object ^ GetValue(int fieldIndex);
public object GetValue (int fieldIndex);
abstract member GetValue : int -> obj
Public Function GetValue (fieldIndex As Integer) As Object

Parameters

fieldIndex
Int32

The index of the field to find.

Returns

The value of the field at the specified index.

Remarks

Exceptions

Exception type Condition
IndexOutOfRangeException The index passed was outside the range of 0 through FieldCount.

Applies to