AdoDotNetReader.GetBytes(Int32, Byte[], Int32, Int32) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
检索指定字节数的二进制数据。
public:
override int GetBytes(int index, cli::array <System::Byte> ^ buffer, int bufferIndex, int length);
public override int GetBytes (int index, byte[] buffer, int bufferIndex, int length);
override this.GetBytes : int * byte[] * int * int -> int
Public Overrides Function GetBytes (index As Integer, buffer As Byte(), bufferIndex As Integer, length As Integer) As Integer
参数
- index
- Int32
要检索的项的当前数据块中的索引。
- buffer
- Byte[]
应放置指定数据(作为字节数组)的数组。 如果为 null,则此方法返回数组所需的大小,以适应所有指定的数据。
- bufferIndex
- Int32
参数指定的字节数组中的起始点的索引 buffer 。
- length
- Int32
要读取到由参数指定的字节数组中的字节数 buffer 。
返回
一个数值,指示读入缓冲区的字节数。