Export (0) Print
Expand All

TextWriterTraceListener Constructor

.NET Framework 1.1

Initializes a new instance of the TextWriterTraceListener class.

Overload List

Initializes a new instance of the TextWriterTraceListener class with TextWriter as the output recipient.

[Visual Basic] Public Sub New()
[C#] public TextWriterTraceListener();
[C++] public: TextWriterTraceListener();
[JScript] public function TextWriterTraceListener();

Initializes a new instance of the TextWriterTraceListener class, using the stream as the recipient of the debugging and tracing output.

[Visual Basic] Public Sub New(Stream)
[C#] public TextWriterTraceListener(Stream);
[C++] public: TextWriterTraceListener(Stream*);
[JScript] public function TextWriterTraceListener(Stream);

Initializes a new instance of the TextWriterTraceListener class, using the file as the recipient of the debugging and tracing output.

[Visual Basic] Public Sub New(String)
[C#] public TextWriterTraceListener(string);
[C++] public: TextWriterTraceListener(String*);
[JScript] public function TextWriterTraceListener(String);

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

[Visual Basic] Public Sub New(TextWriter)
[C#] public TextWriterTraceListener(TextWriter);
[C++] public: TextWriterTraceListener(TextWriter*);
[JScript] public function TextWriterTraceListener(TextWriter);

Initializes a new instance of the TextWriterTraceListener class with the specified name, using the stream as the recipient of the debugging and tracing output.

[Visual Basic] Public Sub New(Stream, String)
[C#] public TextWriterTraceListener(Stream, string);
[C++] public: TextWriterTraceListener(Stream*, String*);
[JScript] public function TextWriterTraceListener(Stream, String);

Initializes a new instance of the TextWriterTraceListener class with the specified name, using the file as the recipient of the debugging and tracing output.

[Visual Basic] Public Sub New(String, String)
[C#] public TextWriterTraceListener(string, string);
[C++] public: TextWriterTraceListener(String*, String*);
[JScript] public function TextWriterTraceListener(String, String);

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

[Visual Basic] Public Sub New(TextWriter, String)
[C#] public TextWriterTraceListener(TextWriter, string);
[C++] public: TextWriterTraceListener(TextWriter*, String*);
[JScript] public function TextWriterTraceListener(TextWriter, String);

See Also

TextWriterTraceListener Class | TextWriterTraceListener Members | System.Diagnostics Namespace

Show:
© 2014 Microsoft