語言

IDataReader.GetValue(Int32) 方法

定義

回傳指定欄位的值。

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

參數

fieldIndex
Int32

尋找該領域的索引。

傳回

欄位在指定索引處的值。

備註

Exceptions

例外狀況類型 狀況
IndexOutOfRangeException 通過的指數超出0到 FieldCount範圍。

適用於