Writes a portion of a byte array as a byte array field to the stream message. The a portion of the byte array value is written to the message as a byte array field. Consecutively written byte array fields are treated as two distinct fields when the fields are read.

Namespace:  Apache.NMS
Assembly:  Apache.NMS (in Apache.NMS.dll)

Syntax

Visual Basic
Sub WriteBytes ( _
	value As Byte(), _
	offset As Integer, _
	length As Integer _
)
C#
void WriteBytes(
	byte[] value,
	int offset,
	int length
)
Visual C++
void WriteBytes(
	array<unsigned char>^ value, 
	int offset, 
	int length
)
JavaScript
function writeBytes(value, offset, length);

Parameters

value
Type: array<System..::..Byte>[]()[][]
A Byte
offset
Type: System..::..Int32
A Int32 value that indicates the point in the buffer to begin writing to the stream message.
length
Type: System..::..Int32
A Int32 value that indicates how many bytes in the buffer to write to the stream message.

Exceptions

ExceptionCondition
Apache.NMS..::..NMSException if the NMS provider fails to write to the message due to some internal error.
Apache.NMS..::..MessageNotWriteableException if the message is in read-only mode.

See Also