WebLogic Messaging API Class Library

IMapMessage.SetBytes\xA0Method\xA0(String, Byte[], Int32, Int32)

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

void\xA0SetBytes(
\xA0\xA0\xA0string\xA0name,
\xA0\xA0\xA0byte[]\xA0value,
\xA0\xA0\xA0int\xA0offset,
\xA0\xA0\xA0int\xA0length
);

Parameters

name
the name of the byte array
value
the byte array value to set in the Map
offset
the initial offset within the byte array
length
the number of bytes to use

Exceptions

Exception Type Condition
MessageException if JMS fails to write the message due to some internal error.
ArgumentException if the name is null or if the name is an empty string.
MessageNotWriteableException if the message is in read-only mode.

See Also

IMapMessage Interface | WebLogic.Messaging Namespace | IMapMessage.SetBytes Overload List