xtd 0.2.0
Loading...
Searching...
No Matches

◆ value() [2/2]

void xtd::diagnostics::switch_base::value ( const xtd::string value)
protected

Sets the value of the switch.

Parameters
valueA string representing the value of the switch.
Remarks
The on_value_changed method is called when the value of the value property is changed. The on_value_changed method parses the value of this property and converts it to an integer value, which is then used to set the switch_setting property.
Notes to inheritors
You should override the on_value_changed() method and provide a conversion operation that sets the appropriate switch_setting value for your switch.