NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

TraceListener Class

Provides the abstract (in Visual Basic MustInherit) base class for the listeners who monitor trace and debug output.

Object
   TraceListener

[Visual Basic]
MustInherit Public Class TraceListener
[C#]
public abstract class TraceListener
[C++]
public __gc __abstract class TraceListener
[JScript]
public abstract class TraceListener

Remarks

Notes to Inheritors: Inherit from this class to implement a custom listener for the Debug and Trace classes. At a minimum, you must override the Write and WriteLine methods. Additionally, you can override the Close and Flush methods.

For examples of how to implement a TraceListener, see the DefaultTraceListener and TextWriterTraceListener classes.

Requirements

Namespace: System.Diagnostics

Assembly: System.dll

See Also

TraceListener Members | System.Diagnostics Namespace | DefaultTraceListener | TextWriterTraceListener | Debug | Trace