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.
TextWriterTraceListener Constructor (Stream^)
.NET Framework (current version)
Initializes a new instance of the TextWriterTraceListener class, using the stream as the recipient of the debugging and tracing output.
Assembly: System (in System.dll)
Parameters
- stream
-
Type:
System.IO::Stream^
A Stream that represents the stream the TextWriterTraceListener writes to.
| Exception | Condition |
|---|---|
| ArgumentNullException | The stream is null. |
The following code example creates a TextWriterTraceListener using the TextWriterTraceListener(Stream^) constructor and adds it to the TraceListenerCollection. The example then writes two messages to this TextWriterTraceListener, and writes a message to all TraceListener objects in the TraceListenerCollection. Finally, it flushes and closes the TextWriterTraceListener.
.NET Framework
Available since 1.1
Available since 1.1
Show: