DbDataRecord.GetBytes(Int32, Int64, Byte[], Int32, Int32) 方法

定义

以字节数组的形式返回指定列的值。

public:
 abstract long GetBytes(int i, long dataIndex, cli::array <System::Byte> ^ buffer, int bufferIndex, int length);
public:
 virtual long GetBytes(int i, long dataIndex, cli::array <System::Byte> ^ buffer, int bufferIndex, int length);
public abstract long GetBytes (int i, long dataIndex, byte[] buffer, int bufferIndex, int length);
public abstract long GetBytes (int i, long dataIndex, byte[]? buffer, int bufferIndex, int length);
public long GetBytes (int i, long dataIndex, byte[] buffer, int bufferIndex, int length);
abstract member GetBytes : int * int64 * byte[] * int * int -> int64
abstract member GetBytes : int * int64 * byte[] * int * int -> int64
override this.GetBytes : int * int64 * byte[] * int * int -> int64
Public MustOverride Function GetBytes (i As Integer, dataIndex As Long, buffer As Byte(), bufferIndex As Integer, length As Integer) As Long
Public Function GetBytes (i As Integer, dataIndex As Long, buffer As Byte(), bufferIndex As Integer, length As Integer) As Long

参数

i
Int32

从零开始的列序号。

dataIndex
Int64

字段中作为读取操作起始位置的索引。

buffer
Byte[]

要读入字节流的缓冲区。

bufferIndex
Int32

开始读取操作的 buffer 的索引。

length
Int32

要读取的字节数。

返回

指定列的值。

实现

注解

不执行任何转换;因此,检索到的数据必须已是字节数组。

适用于

另请参阅