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

定義

傳回指定資料行的值做為位元組陣列。Returns the value of the specified column as a byte array.

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 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

以零為基底的資料行序數。The zero-based column ordinal.

dataIndex
Int64

要開始讀取作業之欄位中的索引。The index within the field from which to start the read operation.

buffer
Byte[]

要將位元組資料流讀取到其中的緩衝區。The buffer into which to read the stream of bytes.

bufferIndex
Int32

要開始讀取作業的 buffer 索引。The index for buffer to start the read operation.

length
Int32

要讀取的位元組數。The number of bytes to read.

傳回

Int64

指定的資料行值。The value of the specified column.

實作

備註

不會執行任何轉換;因此,抓取的資料必須已經是位元組陣列。No conversions are performed; therefore the data retrieved must already be a byte array.

適用於

另請參閱