A map message is a message whose body comprises a set of name-value pairs, where each value has an associated data type.
IBM.XMS.IPropertyContext | +----IBM.XMS.IMessage | +----IBM.XMS.IMapMessage
When an application gets the value of name-value pair, the value can be converted by XMS into another data type. For more information about this form of implicit conversion, see Map messages.
.NET property | Description |
---|---|
MapNames | Get an enumeration of the names in the body of the map message. |
Method | Description |
---|---|
GetBoolean | Get the boolean value identified by name from the body of the map message. |
GetByte | Get the byte identified by name from the body of the map message. |
GetBytes | Get the array of bytes identified by name from the body of the map message. |
GetChar | Get the character identified by name from the body of the map message. |
GetDouble | Get the double precision floating point number identified by name from the body of the map message. |
GetFloat | Get the floating point number identified by name from the body of the map message. |
GetInt | Get the integer identified by name from the body of the map message. |
GetLong | Get the long integer identified by name from the body of the map message. |
GetObject | Get a reference to the value of a name-value pair, from the body of the map message. |
GetShort | Get the short integer identified by name from the body of the map message. |
GetString | Get the string identified by name from the body of the map message. |
ItemExists | Check whether the body of the map message contains a name-value pair with the specified name. |
SetBoolean | Set a boolean value in the body of the map message. |
SetByte | Set a byte in the body of the map message. |
SetBytes | Set an array of bytes in the body of the map message. |
SetChar | Set a 2-byte character in the body of the map message. |
SetDouble | Set a double precision floating point number in the body of the map message. |
SetFloat | Set a floating point number in the body of the map message. |
SetInt | Set an integer in the body of the map message. |
SetLong | Set a long integer in the body of the map message. |
SetObject | Set a value, which must be an XMS primitive type, in the body of the map message. |
SetShort | Set a short integer in the body of the map message. |
SetString | Set a string in the body of the map message. |
Boolean GetBoolean(String name);
Get the boolean value identified by name from the body of the map message.
Byte GetByte(String name); Int16 GetSignedByte(String name);
Get the byte identified by name from the body of the map message.
Double GetDouble(String name);
Get the double precision floating point number identified by name from the body of the map message.
Single GetFloat(String name);
Get the floating point number identified by name from the body of the map message.
Int64 GetLong(String name);
Get the long integer identified by name from the body of the map message.
Object GetObject(String name);
Get a reference to the value of a name-value pair, from the body of the map message. The name-value pair is identified by name.
Int16 GetShort(String name);
Get the short integer identified by name from the body of the map message.
String GetString(String name);
Get the string identified by name from the body of the map message.
Boolean ItemExists(String name);
Check whether the body of the map message contains a name-value pair with the specified name.
void SetBoolean(String name, Boolean value);
Set a boolean value in the body of the map message.
void SetByte(String name, Byte value); void SetSignedByte(String name, Int16 value);
Set a byte in the body of the map message.
void SetBytes(String name, Byte[] value);
Set an array of bytes in the body of the map message.
void SetChar(String name, Char value);
Set a 2-byte character in the body of the map message.
void SetDouble(String name, Double value);
Set a double precision floating point number in the body of the map message.
void SetFloat(String name, Single value);
Set a floating point number in the body of the map message.
void SetLong(String name, Int64 value);
Set a long integer in the body of the map message.
void SetObject(String name, Object value);
Set a value, which must be an XMS primitive type, in the body of the map message.
void SetShort(String name, Int16 value);
Set a short integer in the body of the map message.
void SetString(String name, String value);
Set a string in the body of the map message.