Debug.Listeners Property
.NET Framework 3.0
Gets the collection of listeners that is monitoring the debug output.
Namespace: System.Diagnostics
Assembly: System (in system.dll)
Assembly: System (in system.dll)
/** @property */ public static TraceListenerCollection get_Listeners ()
public static function get Listeners () : TraceListenerCollection
Not applicable.
Property Value
A TraceListenerCollection representing a collection of type TraceListener that monitors the debug output.The listeners produce formatted output from the debug output. By default, the collection contains an instance of the DefaultTraceListener class. To remove the default listener, call the Remove method, and pass it the instance of the DefaultTraceListener. To redirect output to the console window, add an instance of the ConsoleTraceListener. To redirect output to a file or stream, add an instance of the TextWriterTraceListener.
- SecurityPermission for operating with unmanaged code. Demand value LinkDemand; associated enumeration: SecurityPermissionFlag.UnmanagedCode.
Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.
Show: