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

从零开始的列序号。

返回

Byte

指定列的 8 位无符号整数值。

例外

传递的索引位于 0 至 FieldCount 的范围之外。

适用于