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!

Debug.Listeners

Gets the collection of listeners that is monitoring the debug output.

[Visual Basic]
Public Shared ReadOnly Property Listeners As TraceListeners
[C#]
public static TraceListeners Listeners {get;}
[C++]
public: __property static TraceListeners* get_Listeners();
[JScript]
public static function get Listeners() : TraceListeners;

Property Value

A TraceListeners that represents a collection of type TraceListener that is monitoring the debug output.

Remarks

The listeners produce the output. By default, the collection contains an instance of the DefaultTraceListener class. If you want to remove the default listener, call the Remove method, and pass it the instance of the DefaultTraceListener. To redirect output to the screen, add an instance of the TextWriterTraceListener that uses the Console.Out stream.

See Also

Debug Class | Debug Members | System.Diagnostics Namespace | Debug | Trace | BooleanSwitch | TraceSwitch | TraceListener | DefaultTraceListener | ConditionalAttribute