Provides the default output methods and behavior for tracing.
Object
TraceListener
DefaultTraceListener
[Visual Basic] Public Class DefaultTraceListener Inherits TraceListener [C#] public class DefaultTraceListener : TraceListener [C++] public __gc class DefaultTraceListener : public TraceListener [JScript] public class DefaultTraceListener extends TraceListener
This class is automatically added to the Debug Listeners and to the Trace Listeners collections.
By default, Write and WriteLine methods emit the message to the Microsoft.Win32.Interop.Windows.OutputDebugString API, and to Log.
The Fail method, by default, displays a message box when the application is running in a user interface mode, and also emits the message using WriteLine.
Namespace: System.Diagnostics
Assembly: System.dll
DefaultTraceListener Members | System.Diagnostics Namespace | TraceListener | TextWriterTraceListener | Debug | Trace