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!

DefaultTraceListener.Fail (String, String)

Emits or displays messages and a stack trace for an assertion that always fails.

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

Parameters

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

Remarks

By default this method outputs the message, detailedMessage and a stack trace to a message box when the application is running in a user interface mode, and to the instance of this class.

See Also

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