Universal Messaging 10.3 | Developer Guide | Enterprise APIs | Enterprise Developer's Guide for C# | General Features | Universal Messaging Event Dictionaries
 
Universal Messaging Event Dictionaries
Event Dictionaries (nEventProperties) provide an accessible and flexible way to store any number of message properties for delivery within an Universal Messaging Events.
Event Dictionaries are quite similar to a hash table, supporting primitive types, arrays, and nested dictionaries.
Universal Messaging filtering allows subscribers to receive only specific subsets of a channel's events by applying the server's advanced filtering capabilities to the contents of each event's dictionary.
Event dictionaries can facilitate the automated purging of data from channels through the use of Publish Keys.
Constructing an Event
In this C# code snippet, we assume we want to publish an event containing the definition of a bond, say, with a name of "bond1":

nEventProperties props = new nEventProperties();
props.put("bondname", "bond1");
props.put("price", 100.00);
nConsumeEvent evt1 = new nConsumeEvent("atag", props);
Note that in this example code, we also create a new Universal Messaging Event object (nConsumeEvent) to make use of our Event Dictionary (nEventProperties).