Sets an object value with the specified name into the Map.

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 SetObject ( _
	name As String, _
	value As Object _
)
C#
void SetObject(
	string name,
	Object value
)
Visual C++
void SetObject(
	String^ name, 
	Object^ value
)

Parameters

name
Type: System..::..String
the name of the object
value
Type: System..::..Object
the object value to set in the Map

Exceptions

ExceptionCondition
Kaazing.JMS..::..JMSExceptionif the JMS provider fails to write the message due to some internal error.
System..::..ArgumentExceptionif the name is null or if the name is an empty string.
Kaazing.JMS..::..MessageFormatExceptionif the object is invalid.
Kaazing.JMS..::..MessageNotWriteableExceptionif the message is in read-only mode.

See Also