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, String)

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

Parameters

stream
A Stream that represents the stream that the TextWriterTraceListener writes to.
name
The name of the new instance.

Exceptions

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

Remarks

This constructor initializes the Name property to the Name

parameter or to an empty string ("") if the Name parameter is a null reference (Nothing).

See Also

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