Gets the collection of listeners that is monitoring the trace 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;
A TraceListeners that represents a collection of type TraceListener that is monitoring the trace output.
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.
Trace Class | Trace Members | System.Diagnostics Namespace | Debug | Trace | BooleanSwitch | TraceSwitch | TraceListener | DefaultTraceListener | ConditionalAttribute