System.Diagnostics.Debug.WriteLine Method

Writes a message followed by a line terminator to the trace listeners in the Debug.Listeners collection.

Syntax

[System.Diagnostics.Conditional("DEBUG")]
public static void WriteLine (string message)

Parameters

message
A message to write.

Remarks

By default, the output is written to an instance of System.Diagnostics.DefaultTraceListener.

This method calls the TraceListener.WriteLine(string) method of the trace listener.

Requirements

Namespace: System.Diagnostics
Assembly: System (in System.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0