This documentation is archived and is not being maintained.

TraceListener.WriteLine Method

Writes a message, category name, or the value of an object's ToString method to the listener you create when you implement the TraceListener class, followed by a line terminator.

Overload List

Writes the value of the object's ToString method to the listener you create when you implement the TraceListener class, followed by a line terminator.

Supported by the .NET Compact Framework.

[Visual Basic] Overloads Public Overridable Sub WriteLine(Object)
[C#] public virtual void WriteLine(object);
[C++] public: virtual void WriteLine(Object*);
[JScript] public function WriteLine(Object);

When overridden in a derived class, writes a message to the listener you create in the derived class, followed by a line terminator.

Supported by the .NET Compact Framework.

[Visual Basic] Overloads Public MustOverride Sub WriteLine(String)
[C#] public abstract void WriteLine(string);
[C++] public: virtual void WriteLine(String*) = 0;
[JScript] public abstract function WriteLine(String);

Writes a category name and the value of the object's ToString method to the listener you create when you implement the TraceListener class, followed by a line terminator.

Supported by the .NET Compact Framework.

[Visual Basic] Overloads Public Overridable Sub WriteLine(Object, String)
[C#] public virtual void WriteLine(object, string);
[C++] public: virtual void WriteLine(Object*, String*);
[JScript] public function WriteLine(Object, String);

Writes a category name and a message to the listener you create when you implement the TraceListener class, followed by a line terminator.

Supported by the .NET Compact Framework.

[Visual Basic] Overloads Public Overridable Sub WriteLine(String, String)
[C#] public virtual void WriteLine(string, string);
[C++] public: virtual void WriteLine(String*, String*);
[JScript] public function WriteLine(String, String);

See Also

TraceListener Class | TraceListener Members | System.Diagnostics Namespace

Show: