Writes an object to the bytes message stream. This method works only for the objectified primitive object types (Int32, Double, Boolean ...), String objects, and byte arrays.

Namespace:  Apache.NMS
Assembly:  Apache.NMS (in Apache.NMS.dll)

Syntax

Visual Basic
Sub WriteObject ( _
	value As Object _
)
C#
void WriteObject(
	Object value
)
Visual C++
void WriteObject(
	Object^ value
)
JavaScript
function writeObject(value);

Parameters

value
Type: System..::..Object
A Object the object in the .NET programming language to be written; it must not be null

Exceptions

ExceptionCondition
Apache.NMS..::..MessageFormatException Thrown when the Message has an invalid format.
Apache.NMS..::..MessageNotWriteableException Thrown when the Message is in read-only mode.
Apache.NMS..::..NMSException Thrown when there is an unhandled exception thrown from the provider.

See Also