August 2003
Intermediate to advanced
928 pages
32h 1m
English
BooleanSwitch
This class provides a
simple on/off
switch for debugging and
tracing. Consult Enabled to check if the switch
has been set. You can configure a Boolean switch using the
application configuration file (see Switch). To
use a BooleanSwitch, you must enable tracing or
debugging at compilation time.
public class BooleanSwitch : Switch { // Public Constructors public BooleanSwitch(stringdisplayName, stringdescription); // Public Instance Properties public bool Enabled{set; get; } }
System.Object
→
Switch
→
BooleanSwitch