GetOption
Gets the value of the option entity identified by name in the option section of the message. Option entities include the service-specific runtime options, such as output casing, output data format, and so on.
Syntax
const char* getOption(const char* name)
const UnicodeString getOption(const UnicodeString name)
Parameters
- The name whose associated value is to be returned
Results
Returns the value for the name in the context entity. If the name does not exist, the method returns empty string.
Example
const char* value = message->getOption("OutputCasing");
Same as ASCII or:
UnicodeString option="OutputCasing"; // Or input unicode string
UnicodeString value= message->getOption(option);