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

Initializes a new instance of the TextWriterTraceListener class with the specified Name and using the specified writer as recipient of the tracing or debugging output.

[Visual Basic]
Overloads Public Sub New( _
   ByVal writer As TextWriter, _
   ByVal name As String _
)
[C#]
public TextWriterTraceListener(
   TextWriter writer,
   string name
);
[C++]
public: TextWriterTraceListener(
   TextWriter* writer,
   String* name
);
[JScript]
public function TextWriterTraceListener(
   writer : TextWriter,
   name : String
);

Parameters

writer
A TextWriter that receives the output from the TextWriterTraceListener.
name
The name of the new instance.

Exceptions

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

See Also

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