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

0 から始まる列序数。

dataIndex
Int64

読み取り操作を開始する位置を示すフィールド内のインデックス。

buffer
Byte[]

バイトのストリームを読み込むバッファー。

bufferIndex
Int32

読み取り操作を開始する buffer のインデックス。

length
Int32

読み取るバイト数。

戻り値

指定された列の値。

実装

注釈

変換は実行されません。したがって、取得されるデータは既にバイト配列である必要があります。

適用対象

こちらもご覧ください