ConsoleTraceListener Constructor ()

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Initializes a new instance of the ConsoleTraceListener class with trace output written to the standard output stream.

Namespace:   System.Diagnostics
Assembly:  System (in System.dll)

new : unit -> ConsoleTraceListener

This constructor initializes a ConsoleTraceListener object to write messages to the Console.Out stream. Its Name property is initialized to an empty string ("").

The following code example initializes a ConsoleTraceListener object for the specified Console output stream and adds it to the trace listener collection. This code example is part of a larger example provided for the ConsoleTraceListener class.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 2.0
Return to top
Show: