Skip to Main Content
C# in a Nutshell, Second Edition
book

C# in a Nutshell, Second Edition

by Peter Drayton, Ben Albahari, Ted Neward
August 2003
Intermediate to advanced content levelIntermediate to advanced
928 pages
32h 1m
English
O'Reilly Media, Inc.
Content preview from C# in a Nutshell, Second Edition

Name

TraceSwitch

Synopsis

This class provides a switch that can be set to one of the values in the TraceLevel enumeration. These values are inclusive and cumulative (for example, if Level is set to TraceLevel.Info, then TraceInfo, TraceWarning, and TraceError are true). See TraceLevel for more details. You can configure a trace switch using the application configuration file (see Switch).

public class TraceSwitch : Switch {
// Public Constructors
   public TraceSwitch(string displayName, string description);
// Public Instance Properties
   public TraceLevel Level{set; get; }
   public bool TraceError{get; }
   public bool TraceInfo{get; }
   public bool TraceVerbose{get; }
   public bool TraceWarning{get; }
// Protected Instance Methods
   protected override void OnSwitchSettingChanged( );  
// overrides Switch
}

Hierarchy

System.Object Switch TraceSwitch

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

C# in a Nutshell

C# in a Nutshell

Ben Albahari, Ted Neward, Peter Drayton
C# 7.0 in a Nutshell

C# 7.0 in a Nutshell

Joseph Albahari, Ben Albahari
C# Cookbook, 2nd Edition

C# Cookbook, 2nd Edition

Jay Hilyard, Stephen Teilhet
C# Cookbook

C# Cookbook

Stephen Teilhet, Jay Hilyard

Publisher Resources

ISBN: 0596005261Catalog PageErrata