SqlDataRecord.SetChars(Int32, Int64, Char[], Int32, Int32) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
将存储在列中的数据设置为指定的 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
从零开始的列序号。
- fieldOffset
- Int64
字段值中的偏移量,从该位置开始复制字符。
- buffer
- Char[]
要从其中复制字符的目标缓冲区。
- bufferOffset
- Int32
缓冲区中的偏移量,从该位置开始复制字符。
- length
- Int32
要从缓冲区复制的字符数。
例外
ordinal
小于 0 或大于列数(即 FieldCount)。