Writes an object to the bytes message stream.

This method works only for the objectified primitive object types (Integer, Double, Long...), String objects, and byte arrays.

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

Syntax

Visual Basic
Sub WriteObject ( _
	value As Object _
)
C#
void WriteObject(
	Object value
)
Visual C++
void WriteObject(
	Object^ value
)

Parameters

value
Type: System..::..Object

Exceptions

ExceptionCondition
Kaazing.JMS..::..JMSExceptionif the JMS provider fails to write the message due to some internal error.
Kaazing.JMS..::..MessageFormatExceptionif the object is of an invalid type.
Kaazing.JMS..::..MessageNotWriteableExceptionif the message is in read-only mode.

See Also