IDataRecord.GetInt32(Int32) 方法

定義

取得指定欄位的 32 位元帶正負號的整數值。

public:
 int GetInt32(int i);
public int GetInt32 (int i);
abstract member GetInt32 : int -> int
Public Function GetInt32 (i As Integer) As Integer

參數

i
Int32

要尋找的欄位索引。

傳回

指定欄位的 32 位元帶正負號的整數值。

例外狀況

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

適用於