WebLogic Messaging API Class Library |

# IStreamMessage.WriteObject Method

Writes an object to the stream message.

This method works only for the objectified primitive object types (`int`, `double`, `long` ...), `String` objects, and byte arrays.

void WriteObject(
Object value
);

#### Parameters

Object
  primitive type object to be written

#### Exceptions

Exception Type | Condition
--- | ---
MessageException | if JMS fails to write the message due to some internal error.
MessageFormatException | if the object is invalid.
MessageNotWriteableException | if the message is in read-only mode.

#### See Also

IStreamMessage Interface | WebLogic.Messaging Namespace