WebLogic Messaging API Class Library |

# IMapMessage.SetBytes Method (String, Byte[], Int32, Int32)

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

void SetBytes(
String name,
Byte[] value,
Int32 offset,
Int32 length
);

#### Parameters

String
  the name of the byte array
Byte[]
  the byte array value to set in the Map
Int32
  the initial offset within the byte array
Int32
  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. Overload List