SourceSwitch.OnValueChanged Method ()


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

Invoked when the value of the Value property changes.

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

protected override void OnValueChanged()

Exception Condition

The new value of Value is not one of the SourceLevels values.

The OnValueChanged method converts the new value of the Value property to the integer representation of the matching field in the SourceLevels enumeration, and then uses this integer to set the SwitchSetting property.

.NET Framework
Available since 2.0
Return to top