OleDbDataReader.GetByte(Int32) 方法    
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
以字节的形式获取指定列的值。
public:
 override System::Byte GetByte(int ordinal);public:
 virtual System::Byte GetByte(int ordinal);public override byte GetByte (int ordinal);public byte GetByte (int ordinal);override this.GetByte : int -> byteabstract member GetByte : int -> byte
override this.GetByte : int -> bytePublic Overrides Function GetByte (ordinal As Integer) As BytePublic Function GetByte (ordinal As Integer) As Byte参数
- ordinal
- Int32
从零开始的列序号。
返回
作为字节形式的指定列的值。
实现
例外
指定的强制转换无效。
注解
不执行任何转换;因此,检索到的数据必须已是字节。
调用 IsDBNull 以在调用此方法之前查找 null 值。