The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.
ConsoleTraceListener Constructor (Boolean)
.NET Framework (current version)
Initializes a new instance of the ConsoleTraceListener class with an option to write trace output to the standard output stream or the standard error stream.
Assembly: System (in System.dll)
Parameters
- useErrorStream
-
Type:
System::Boolean
true to write tracing and debugging output to the standard error stream; false to write tracing and debugging output to the standard output stream.
This constructor initializes a ConsoleTraceListener object to write messages to either the Console::Out or the Console::Error 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.
.NET Framework
Available since 2.0
Available since 2.0
Show: