TraceListener.WriteLine TraceListener.WriteLine TraceListener.WriteLine TraceListener.WriteLine Method

Definition

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.

Overloads

WriteLine(Object) WriteLine(Object) WriteLine(Object) WriteLine(Object)

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.

WriteLine(String) WriteLine(String) WriteLine(String) WriteLine(String)

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

WriteLine(Object, String) WriteLine(Object, String) WriteLine(Object, String) WriteLine(Object, 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.

WriteLine(String, String) WriteLine(String, String) WriteLine(String, String) WriteLine(String, String)

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

WriteLine(Object) WriteLine(Object) WriteLine(Object) WriteLine(Object)

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.

public:
 virtual void WriteLine(System::Object ^ o);
public virtual void WriteLine (object o);
abstract member WriteLine : obj -> unit
override this.WriteLine : obj -> unit
Public Overridable Sub WriteLine (o As Object)

Parameters

o
Object Object Object Object

An Object whose fully qualified class name you want to write.

Remarks

The typical line terminator you might implement is a carriage return followed by a line feed (\r\n).

See Also

WriteLine(String) WriteLine(String) WriteLine(String) WriteLine(String)

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

public:
 abstract void WriteLine(System::String ^ message);
public abstract void WriteLine (string message);
abstract member WriteLine : string -> unit
Public MustOverride Sub WriteLine (message As String)

Parameters

message
String String String String

A message to write.

Remarks

The typical line terminator you might implement is a carriage return followed by a line feed (\r\n).

Notes to Inheritors

When inheriting from this class, you must implement this method. To support an indentation, call WriteIndent() if NeedIndent is true. To indent the following line, you must reset NeedIndent to true.

See Also

WriteLine(Object, String) WriteLine(Object, String) WriteLine(Object, String) WriteLine(Object, 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.

public:
 virtual void WriteLine(System::Object ^ o, System::String ^ category);
public virtual void WriteLine (object o, string category);
abstract member WriteLine : obj * string -> unit
override this.WriteLine : obj * string -> unit
Public Overridable Sub WriteLine (o As Object, category As String)

Parameters

o
Object Object Object Object

An Object whose fully qualified class name you want to write.

category
String String String String

A category name used to organize the output.

Remarks

The typical line terminator you might implement is a carriage return followed by a line feed (\r\n).

See Also

WriteLine(String, String) WriteLine(String, String) WriteLine(String, String) WriteLine(String, String)

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

public:
 virtual void WriteLine(System::String ^ message, System::String ^ category);
public virtual void WriteLine (string message, string category);
abstract member WriteLine : string * string -> unit
override this.WriteLine : string * string -> unit
Public Overridable Sub WriteLine (message As String, category As String)

Parameters

message
String String String String

A message to write.

category
String String String String

A category name used to organize the output.

Remarks

The typical line terminator you might implement is a carriage return followed by a line feed (\r\n).

See Also

Applies to