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到 FieldCount範圍。

適用於