SqlDataRecord.SetChars(Int32, Int64, Char[], Int32, Int32) SqlDataRecord.SetChars(Int32, Int64, Char[], Int32, Int32) SqlDataRecord.SetChars(Int32, Int64, Char[], Int32, Int32) SqlDataRecord.SetChars(Int32, Int64, Char[], Int32, Int32) Method

Definition

Sets the data stored in the column to the specified array of Char values.

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)

Parameters

ordinal
Int32 Int32 Int32 Int32

The zero-based ordinal of the column.

fieldOffset
Int64 Int64 Int64 Int64

The offset into the field value to start copying characters.

buffer
Char[]

The target buffer from which to copy chars.

bufferOffset
Int32 Int32 Int32 Int32

The offset into the buffer from which to start copying chars.

length
Int32 Int32 Int32 Int32

The number of chars to copy from the buffer.

Exceptions

The ordinal is less than 0 or greater than the number of columns (that is, FieldCount).

Applies to