O'Reilly logo

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

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Name

TextWriterTraceListener

Synopsis

This class writes to a System.IO.TextWriter. Use Writer to set or change the TextWriter.

public class TextWriterTraceListener : TraceListener {
// Public Constructors
   public method TextWriterTraceListener();  
   public method TextWriterTraceListener(
        System.IO.Stream stream);  
   public method TextWriterTraceListener(
        System.IO.Stream stream, string name);  
   public method TextWriterTraceListener(string fileName);  
   public method TextWriterTraceListener(string fileName, 
        string name);  
   public method TextWriterTraceListener(
        System.IO.TextWriter writer);  
   public method TextWriterTraceListener(
        System.IO.TextWriter writer, string name);  
// Public Instance Properties
   public field TextWriter Writer{set; get; } 
// Public Instance Methods
   public override method void Close();                          // overrides TraceListener
   public override method void Flush();                          // overrides TraceListener
   public override method void Write(string message);           // overrides TraceListener
   public override method void WriteLine(string message);       // overrides TraceListener
                  // Protected Instance Methods
   protected override method void Dispose(bool disposing);      // overrides TraceListener
}

Hierarchy

System.ObjectSystem.MarshalByRefObjectTraceListener(System.IDisposable)TextWriterTraceListener

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required