Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

BooleanSwitch.OnValueChanged Method

Determines whether the new value of the Value property can be parsed as a Boolean value.

Namespace:  System.Diagnostics
Assembly:  System (in System.dll)

protected override void OnValueChanged()

The OnValueChanged method determines whether the new value is a valid string representation of a Boolean value ("false" or "true"). If so, the method sets the SwitchSetting property to 0 or 1. Otherwise, the base method is called, which converts the string value to an integer value, which is then used to set the SwitchSetting property.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Show:
© 2015 Microsoft