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

ASCII Version
const char* getOption(const char* name) 
Unicode Version
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

ASCII Version
const char* value = message->getOption("OutputCasing"); 
Unicode Version

Same as ASCII or:

UnicodeString option="OutputCasing"; // Or input unicode string
UnicodeString value= message->getOption(option);