PostSharp//API Reference/Post­Sharp.​Patterns.​Diagnostics.​Backends.​Trace/Base­Collecting­Trace­Listener/Fail
Open sandboxFocus

Method Fail

Fail(String, String)

Emits an error message and a detailed error message to the listener you create when you implement the TraceListener class.

public override void Fail(string message, string detailMessage)
Type Name Description
String message

A message to emit.

String detailMessage

A detailed message to emit.