IDataRecord.GetByte(Int32) 方法

定義

取得指定資料行的 8 位元不帶正負號的整數值。

public:
 System::Byte GetByte(int i);
public byte GetByte (int i);
abstract member GetByte : int -> byte
Public Function GetByte (i As Integer) As Byte

參數

i
Int32

以零為基底的資料行序數。

傳回

指定資料行的 8 位元不帶正負號的整數值。

例外狀況

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

適用於