IDataRecord.GetValue(Int32) 方法

定义

返回指定字段的值。

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

要查找的字段的索引。

返回

字段值。

例外

传递的索引超出了 0 到 FieldCount0 的范围。

适用于