System.Diagnostics.TraceSwitch.OnValueChanged Method

Sets the Switch.SwitchSetting property to the integer equivalent of the Switch.Value property.

Syntax

protected override void OnValueChanged ()

Remarks

This method is called internally when the Switch.Value property of the switch changes. The method ensures that the properties relating to the switch's value reflect the new value.

Requirements

Namespace: System.Diagnostics
Assembly: System (in System.dll)
Assembly Versions: 2.0.0.0, 4.0.0.0