BooleanSwitch

BooleanSwitch

System.Diagnostics (system.dll) class

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  (string   displayName   , string   description   );  // Public Instance Properties  public bool  Enabled  {set; get; } } 

Hierarchy

System.Object Switch BooleanSwitch



C# in a Nutshell
C # in a Nutshell, Second Edition
ISBN: 0596005261
EAN: 2147483647
Year: 2005
Pages: 963

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net