IDataRecord.GetValue(Int32) IDataRecord.GetValue(Int32) IDataRecord.GetValue(Int32) IDataRecord.GetValue(Int32) Method

定义

返回指定字段的值。Return the value of the specified field.

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

参数

i
Int32 Int32 Int32 Int32

要查找的字段的索引。The index of the field to find.

返回

返回时将包含字段值的 ObjectThe Object which will contain the field value upon return.

异常

传递的索引位于 0 至 FieldCount 的范围之外。The index passed was outside the range of 0 through FieldCount.

适用于