This documentation is archived and is not being maintained.

Trace.Assert Method

Checks for a condition, and displays a message if the condition is false.

Name Description
Trace.Assert (Boolean) Checks for a condition, and outputs the call stack if the condition is false.

Supported by the .NET Compact Framework.

Trace.Assert (Boolean, String) Checks for a condition, and displays a message if the condition is false.

Supported by the .NET Compact Framework.

Trace.Assert (Boolean, String, String) Checks for a condition, and displays both messages if the condition is false.

Supported by the .NET Compact Framework.

Show: