Sets whether the switch is enabled or disabled.
[Visual Basic] Overrides Protected Sub SetSwitchSetting( _ ByVal value As Integer _ ) [C#] protected override void SetSwitchSetting( int value ); [C++] protected: override void SetSwitchSetting( int value ); [JScript] protected override function SetSwitchSetting( value : int );
To enable a disabled instance of a BooleanSwitch, call this method with a value other than zero ("0"). To disable an enabled switch, call SetSwitchSetting with zero ("0").
Assess the Enabled field to see whether a switch is enabled or disabled.
BooleanSwitch Class | BooleanSwitch Members | System.Diagnostics Namespace | BooleanSwitch | Switch | Debug | Trace