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

要尋找的欄位索引。

傳回

Object,其中將包含所傳回的欄位值。

例外狀況

傳遞的索引超出 0 到 FieldCount 的範圍。

適用於