共用方式為


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

要讀取的位元組數。

傳回

指定的資料行值。

實作

備註

不會執行轉換;因此,擷取的數據必須已經是位元組陣列。

適用於

另請參閱