March 2002
Intermediate to advanced
864 pages
31h 8m
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 method BooleanSwitch(string displayName, string description); // Public Instance Properties public field bool Enabled{set; get; } }
System.Object→Switch→BooleanSwitch