Provides a simple on/off switch that controls debugging and tracing output.
More...
|
| BooleanSwitch (string displayName, string description) |
| Initializes a new instance of the T:System.Diagnostics.BooleanSwitch class with the specified display name and description. More...
|
|
| BooleanSwitch (string displayName, string description, string defaultSwitchValue) |
| Initializes a new instance of the T:System.Diagnostics.BooleanSwitch class with the specified display name, description, and default switch value. More...
|
|
|
override void | OnValueChanged () |
| Determines whether the new value of the P:System.Diagnostics.Switch.Value property can be parsed as a Boolean value. More...
|
|
| Switch (string displayName, string description) |
| Initializes a new instance of the T:System.Diagnostics.Switch class. More...
|
|
| Switch (string displayName, string description, string defaultSwitchValue) |
| Initializes a new instance of the T:System.Diagnostics.Switch class, specifying the display name, description, and default value for the switch. More...
|
|
virtual internal string [] | GetSupportedAttributes () |
| Gets the custom attributes supported by the switch. More...
|
|
virtual void | OnSwitchSettingChanged () |
| Invoked when the P:System.Diagnostics.Switch.SwitchSetting property is changed. More...
|
|
Provides a simple on/off switch that controls debugging and tracing output.
Definition at line 7 of file BooleanSwitch.cs.
◆ BooleanSwitch() [1/2]
System.Diagnostics.BooleanSwitch.BooleanSwitch |
( |
string |
displayName, |
|
|
string |
description |
|
) |
| |
Initializes a new instance of the T:System.Diagnostics.BooleanSwitch class with the specified display name and description.
- Parameters
-
displayName | The name to display on a user interface. |
description | The description of the switch. |
Definition at line 33 of file BooleanSwitch.cs.
◆ BooleanSwitch() [2/2]
System.Diagnostics.BooleanSwitch.BooleanSwitch |
( |
string |
displayName, |
|
|
string |
description, |
|
|
string |
defaultSwitchValue |
|
) |
| |
Initializes a new instance of the T:System.Diagnostics.BooleanSwitch class with the specified display name, description, and default switch value.
- Parameters
-
displayName | The name to display on the user interface. |
description | The description of the switch. |
defaultSwitchValue | The default value of the switch. |
Definition at line 42 of file BooleanSwitch.cs.
◆ OnValueChanged()
override void System.Diagnostics.BooleanSwitch.OnValueChanged |
( |
| ) |
|
|
protectedvirtual |
◆ Enabled
bool? System.Diagnostics.BooleanSwitch.Enabled |
|
getset |
Gets or sets a value indicating whether the switch is enabled or disabled.
- Returns
true
if the switch is enabled; otherwise, false
. The default is false
.
- Exceptions
-
T:System.Security.SecurityException | The caller does not have the correct permission. |
Definition at line 14 of file BooleanSwitch.cs.
The documentation for this class was generated from the following file: