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

定义

检索 byte 数组形式的字段值。Retrieves the field value as a byte array.

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

参数

ordinal
Int32

字段的序号。The ordinal of the field.

dataIndex
Int64

开始复制数据的位置的索引。The index at which to start copying data.

buffer
Byte[]

将数据复制到其中的目标缓冲区。The destination buffer where data is copied.

bufferIndex
Int32

目标缓冲区中开始复制的位置的索引。The index in the destination buffer where copying will begin.

length
Int32

要复制的字节数。The number of bytes to copy.

返回

Int64

已复制的字节数。The number of bytes copied.

实现

适用于