TextWriterTraceListener Constructor (String)
Initializes a new instance of the TextWriterTraceListener class, using the file as the recipient of the debugging and tracing output.
Assembly: System (in System.dll)
The following code example creates a TextWriterTraceListener using the constructor, then adds it to the TraceListenerCollection. The example writes two messages to this TextWriterTraceListener, then writes a message to all TraceListener objects in the TraceListenerCollection. Finally, it flushes and closes the TextWriterTraceListener.
Available since 1.1