Επεξεργασία

Κοινή χρήση μέσω


SqlChars.Write(Int64, Char[], Int32, Int32) Method

Definition

Copies characters from the passed-in buffer to this SqlChars instance.

public:
 void Write(long offset, cli::array <char> ^ buffer, int offsetInBuffer, int count);
public void Write (long offset, char[] buffer, int offsetInBuffer, int count);
member this.Write : int64 * char[] * int * int -> unit
Public Sub Write (offset As Long, buffer As Char(), offsetInBuffer As Integer, count As Integer)

Parameters

offset
Int64

A long value offset into the value that is contained in the SqlChars instance.

buffer
Char[]

The character array buffer to copy into.

offsetInBuffer
Int32

An Int32 integer offset into the buffer to start copying into.

count
Int32

An Int32 integer representing the number of characters to copy.

Remarks

If this operation writes to a position beyond Length but within MaxLength, Length is updated to reflect the new ending position.

The value of offsetInBuffer must be less than or equal to Length. An exception is thrown otherwise. Only a value of 0 can be specified when writing to a null value instance.

If an attempt is made to write beyond MaxLength, an exception is thrown.

Applies to

See also