Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

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.

.NET Framework
Available since 2.0
Return to top
Show:
© 2017 Microsoft