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