System.Diagnostics.Debug.Write Method

Writes a message to the trace listeners in the Debug.Listeners collection.

Syntax

[System.Diagnostics.Conditional("DEBUG")]
public static void Write (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.Write(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