SqlDataRecord.SetBytes(Int32, Int64, Byte[], Int32, Int32) メソッド

定義

列に格納されたデータを、指定した Byte 値の配列に設定します。

public:
 virtual void SetBytes(int ordinal, long fieldOffset, cli::array <System::Byte> ^ buffer, int bufferOffset, int length);
public virtual void SetBytes (int ordinal, long fieldOffset, byte[] buffer, int bufferOffset, int length);
abstract member SetBytes : int * int64 * byte[] * int * int -> unit
override this.SetBytes : int * int64 * byte[] * int * int -> unit
Public Overridable Sub SetBytes (ordinal As Integer, fieldOffset As Long, buffer As Byte(), bufferOffset As Integer, length As Integer)

パラメーター

ordinal
Int32

列の 0 から始まる序数。

fieldOffset
Int64

フィールド値内のバイトのコピー開始位置となるオフセット。

buffer
Byte[]

バイトのコピー元となる宛先バッファー。

bufferOffset
Int32

バッファー内のバイトのコピー開始位置を示すオフセット。

length
Int32

バッファーからコピーするバイト数。

例外

ordinal が 0 未満か、列の数を超えています (つまり、FieldCount)。

適用対象