Bytes. Write(Int64, Byte, Int32, Int32) Method
Copies bytes from the passed-in buffer to this SqlBytes instance.
public: void Write(long offset, cli::array <System::Byte> ^ buffer, int offsetInBuffer, int count);
public void Write (long offset, byte buffer, int offsetInBuffer, int count);
member this.Write : int64 * byte * int * int -> unit
Public Sub Write (offset As Long, buffer As Byte(), offsetInBuffer As Integer, count As Integer)
The byte array buffer to copy into.
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.