Switch.OnValueChanged Method ()

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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
Available since 2.0
Return to top
Show: