NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

TraceListener.Fail (String, String)

Emits or displays messages for an assertion that always fails.

[Visual Basic]
Overloads Overridable Public Sub Fail( _
   ByVal message As String, _
   ByVal detailMessage As String _
)
[C#]
public virtual void Fail(
   string message,
   string detailMessage
);
[C++]
public: virtual void Fail(
   String* message,
   String* detailMessage
);
[JScript]
public function Fail(
   message : String,
   detailMessage : String
);

Parameters

message
A message to emit or display.
detailMessage
A detailed message to emit or display.

Remarks

The default behavior is to output the message and detailedMessage to a message box when the application is running in a user interface mode, and to the TraceListener instances in a TraceListeners collection. By default, the TraceListeners 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

TraceListener Class | TraceListener Members | System.Diagnostics Namespace | TraceListener.Fail Overload List | TraceListener | DefaultTraceListener | TextWriterTraceListener | Debug | Trace