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

◆ trace_switch() [2/2]

xtd::diagnostics::trace_switch::trace_switch ( const xtd::string display_name,
const xtd::string description,
const xtd::string default_switch_value 
)

Initializes a new instance of the xtd::diagnostics::trace_switch class, using the specified display name, description, and default value for the switch.

Parameters
display_nameThe name to display on a user interface.
descriptionThe description of the switch.
default_switch_valueThe default value of the switch.
Remarks
The display_name parameter is used to set the value of the xtd::diagnostics::trace_switch::display_name property, the description parameter is use to set the value of the xtd::diagnostics::trace_switch::description property, and the default_switch_value parameter is saved as a field and used to initialize the xtd::diagnostics::trace_switch::value property on first reference.