IDataReader.GetValue(Int32) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
回傳指定欄位的值。
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範圍。 |