Mono Class Library: System.Diagnostics.Debug Overview | Members

System.Diagnostics.Debug.Fail Method

Send a failure message to all System.Diagnostics.TraceListener objects in the Debug.Listeners collection. [Edit]

[System.Diagnostics.Conditional("DEBUG")]
public static void Fail (string message, string detailMessage)

Parameters

message
A message to display [Edit]
detailMessage
A more detailed message to display [Edit]

Remarks

Invokes the TraceListener.Fail(string, string) method on all System.Diagnostics.TraceListener objects in the Debug.Listeners collection. [Edit]

Requirements

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