IDataRecord.GetByte(Int32) 方法

定义

获取指定列的 8 位无符号整数值。Gets the 8-bit unsigned integer value of the specified column.

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

从零开始的列序号。The zero-based column ordinal.

返回

指定列的 8 位无符号整数值。The 8-bit unsigned integer value of the specified column.

异常

传递的索引位于 0 至 FieldCount 的范围之外。The index passed was outside the range of 0 through FieldCount.

适用于