A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://docs.microsoft.com/en-us/dotnet/api/system.diagnostics.tracelistener.fail below:

TraceListener.Fail Method (System.Diagnostics) | Microsoft Learn

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

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

public:
 virtual void Fail(System::String ^ message, System::String ^ detailMessage);
public virtual void Fail(string? message, string? detailMessage);
public virtual void Fail(string message, string detailMessage);
abstract member Fail : string * string -> unit
override this.Fail : string * string -> unit
Public Overridable Sub Fail (message As String, detailMessage As String)
Parameters
message
String

A message to emit.

detailMessage
String

A detailed message to emit.

Remarks

The default behavior is to display the message and detailed message in a message box when the application is running in a user-interface mode, and to the TraceListener instances in a TraceListenerCollection collection. By default, the TraceListenerCollection collection has an instance of a DefaultTraceListener. You can customize this behavior by adding a TraceListener to or removing one from the collection.

See also Applies to

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4