Switch::OnValueChanged Method ()


Invoked when the Value property is changed.

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

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.

.NET Framework
Available since 2.0
Return to top