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

Switch.OnValueChanged Method

Invoked when the Value property is changed.

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

abstract OnValueChanged : unit -> unit  
override OnValueChanged : unit -> unit

The default implementation parses the new value of the Value property to an integer value which it uses to set the SwitchSetting property.

Notes to Inheritors

You should override this method and use a conversion that sets the appropriate SwitchSetting value for your switch.

.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