Writes a portion of a byte array to the bytes message stream.

Namespace:  Kaazing.JMS
Assembly:  Kaazing.JMS (in Kaazing.JMS.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
)

Parameters

value
Type: array<System..::..Byte>[]()[][]
the byte array value to be written
offset
Type: System..::..Int32
the initial offset within the byte array
length
Type: System..::..Int32
the number of bytes to use

Exceptions

ExceptionCondition
Kaazing.JMS..::..JMSExceptionif the JMS provider fails to write the message due to some internal error.
Kaazing.JMS..::..MessageNotWriteableExceptionif the message is in read-only mode.

See Also