Initializes a new instance of the TextWriterTraceListener class using the stream parameter as the recipient of the debugging and tracing output.
[Visual Basic] Overloads Public Sub New( _ ByVal stream As Stream _ ) [C#] public TextWriterTraceListener( Stream stream ); [C++] public: TextWriterTraceListener( Stream* stream ); [JScript] public function TextWriterTraceListener( stream : Stream );
Exception Type | Condition |
---|---|
ArgumentNullException | The stream is a null reference (in Visual Basic Nothing). |
This constructor initializes the Name property to an empty string ("").
TextWriterTraceListener Class | TextWriterTraceListener Members | System.Diagnostics Namespace | TextWriterTraceListener Constructor Overload List | TraceListener | DefaultTraceListener | TextWriterTraceListener | Stream | TextWriter | Debug | Trace