Sets an object value with the specified name into the Map.
Namespace:
Kaazing.JMSThis method works only for the objectified primitive object types (Integer, Double, Long...), String objects, and byte arrays.
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
| Exception | Condition |
|---|---|
| Kaazing.JMS..::..JMSException | if the JMS provider fails to write the message 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 the message is in read-only mode. |