[TIBCO.EMS.UFOCLIENT .NET client library 5.1 documentation]
Assembly: TIBCO.EMS.UFO (in TIBCO.EMS.UFO.dll)
Returns a collection of all the names in
the MapMessage object.
Namespace:
TIBCO.EMS.UFOAssembly: TIBCO.EMS.UFO (in TIBCO.EMS.UFO.dll)
Syntax
public ICollection GetMapNames() |
Public Function GetMapNames As ICollection |
public: ICollection^ GetMapNames() |
Return Value
A collection of all the names in this MapMessage
Remarks
Programs can get a collection of the names of all the data items in the message body.
MapMessage mapMsg = sess.CreateMapMessage();
mapMsg.SetBoolean("bool1", true);
mapMsg.SetInt("int1", 42);
// if the user needs a collection for use in a foreach loop
ICollection mapNames = mapMsg.GetMapNames();
foreach (String name in mapNames)
Console.WriteLine("map name = " + name);
// if the user needs an enumerator like the old MapNames property
IEnumerator enumerator = mapMsg.GetMapNames().GetEnumerator();
while(enumerator.MoveNext())
{
String name = (String)enumerator.Current;
Console.WriteLine("map name = " + name);
}
| |