NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

BooleanSwitch.SetSwitchSetting

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
);

Parameters

value
Zero ("0") for disabled; any other number for enabled.

Remarks

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.

See Also

BooleanSwitch Class | BooleanSwitch Members | System.Diagnostics Namespace | BooleanSwitch | Switch | Debug | Trace