Sets a object property value with the specified name into the message.

Note that this method works only for the objectified primitive object types (Integer, Double, Long ...) and String objects.

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

Syntax

Visual Basic
Sub SetObjectProperty ( _
	name As String, _
	value As Object _
)
C#
void SetObjectProperty(
	string name,
	Object value
)
Visual C++
void SetObjectProperty(
	String^ name, 
	Object^ value
)

Parameters

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

Exceptions

ExceptionCondition
Kaazing.JMS..::..JMSExceptionif the JMS provider fails to set the property 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 properties are read-only

See Also