OnValueChanged Method
Collapse the table of content
Expand the table of content

Switch.OnValueChanged Method ()


Invoked when the Value property is changed.

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

protected virtual void OnValueChanged()

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.

Universal Windows Platform
Available since 10
.NET Framework
Available since 2.0
Return to top
© 2016 Microsoft