This documentation is archived and is not being maintained.

DefaultTraceListener.Fail Method

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

Overload List

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

Supported by the .NET Compact Framework.

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

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

Supported by the .NET Compact Framework.

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

See Also

DefaultTraceListener Class | DefaultTraceListener Members | System.Diagnostics Namespace

Show: