PutOption

Sets the value for the given name in the option properties. If there is an existing value present for the entity identified by the name, it is replaced. Option properties are the service-specific run-time options.

Syntax

ASCII Version
void putOption(const char* name, const char* value) 
Unicode Version
void putOption(const UnicodeString name, const UnicodeString value) 

Parameters

  • Name with which the specified value is to be associated
  • Value to be associated with the specified name

Example

ASCII Version
message->putOption("OutputCasing", "M"); 
Unicode Version

Same as ASCII or:

UnicodeString option="M"; // Or input unicode string
message->putOption("OutputCasing", option);