Breyta

Deila með


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)

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)

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)

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)

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)

Source:
TraceListener.cs
Source:
TraceListener.cs
Source:
TraceListener.cs

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

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

Applies to

WriteLine(String)

Source:
TraceListener.cs
Source:
TraceListener.cs
Source:
TraceListener.cs

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);
public abstract void WriteLine (string message);
abstract member WriteLine : string -> unit
Public MustOverride Sub WriteLine (message As String)

Parameters

message
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 Implementers

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

Applies to

WriteLine(Object, String)

Source:
TraceListener.cs
Source:
TraceListener.cs
Source:
TraceListener.cs

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

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

category
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

WriteLine(String, String)

Source:
TraceListener.cs
Source:
TraceListener.cs
Source:
TraceListener.cs

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

A message to write.

category
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