SetContext

Overwrites the current context properties with the new context properties.

Syntax

ASCII Version
void setContext(map<string , string> context) 
Unicode Version
void setContext(map< UnicodeString, UnicodeString > context) 

Parameters

  • The new context map to be used to replace the current context map

Example

ASCII Version
map<string , string> context ; 
//more code 
message->setContext(context);
Unicode Version
map< UnicodeString, UnicodeString > context ; 
//more code 
message->setContext(context);