NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

TextWriterTraceListener Constructor (Stream)

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
);

Parameters

stream
A Stream that represents the stream that the TextWriterTraceListener writes to.

Exceptions

Exception Type Condition
ArgumentNullException The stream is a null reference (in Visual Basic Nothing).

Remarks

This constructor initializes the Name property to an empty string ("").

See Also

TextWriterTraceListener Class | TextWriterTraceListener Members | System.Diagnostics Namespace | TextWriterTraceListener Constructor Overload List | TraceListener | DefaultTraceListener | TextWriterTraceListener | Stream | TextWriter | Debug | Trace