Sets a portion of the byte array value with the specified name into the Map.

Namespace:  Kaazing.JMS
Assembly:  Kaazing.JMS (in Kaazing.JMS.dll)

Syntax

Visual Basic
Sub SetBytes ( _
	name As String, _
	value As Byte(), _
	offset As Integer, _
	length As Integer _
)
C#
void SetBytes(
	string name,
	byte[] value,
	int offset,
	int length
)
Visual C++
void SetBytes(
	String^ name, 
	array<unsigned char>^ value, 
	int offset, 
	int length
)

Parameters

name
Type: System..::..String
the name of the byte array
value
Type: array<System..::..Byte>[]()[][]
the byte array value to set in the Map
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.
System..::..ArgumentExceptionif the name is null or if the name is an empty string.
Kaazing.JMS..::..MessageNotWriteableExceptionif the message is in read-only mode.

See Also