Sets a object property value with the specified name into the
message.
Namespace:
Kaazing.JMSNote that this method works only for the objectified primitive object types (Integer, Double, Long ...) and String objects.
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
| Exception | Condition |
|---|---|
| Kaazing.JMS..::..JMSException | if the JMS provider fails to set the property due to some internal error. |
| System..::..ArgumentException | if the name is null or if the name is an empty string. |
| Kaazing.JMS..::..MessageFormatException | if the object is invalid |
| Kaazing.JMS..::..MessageNotWriteableException | if properties are read-only |