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!

DefaultTraceListener Class

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

Remarks

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.

Requirements

Namespace: System.Diagnostics

Assembly: System.dll

See Also

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