This documentation is archived and is not being maintained.

Debug.Assert Method

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

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

Supported by the .NET Compact Framework.

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

Supported by the .NET Compact Framework.

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

Supported by the .NET Compact Framework.

Show: