SqlDataRecord.SetChars(Int32, Int64, Char[], Int32, Int32) メソッド

定義

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

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

パラメーター

ordinal
Int32

列の 0 から始まる序数。

fieldOffset
Int64

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

buffer
Char[]

文字のコピー元となる宛先バッファー。

bufferOffset
Int32

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

length
Int32

バッファーからコピーする文字数。

例外

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

適用対象