Debug.Assert Method (Boolean, String, String)

Causes a break in execution if the specified assertion (condition) evaluates to false.

Namespace: Microsoft.SPOT
Assembly: Microsoft.SPOT.Native (in microsoft.spot.native.dll)

Syntax

[ConditionalAttribute]
public static void Assert (
         boolcondition,
         stringmessage,
         stringdetailedMessage
)

Parameters

  • condition
    The condition to be evaluated. If the return value is true, program execution stops.
  • message
    The text to be displayed if the assertion is true.
  • detailedMessage
    The detailed message to be displayed if the assertion is true.

Version Information

Available in the .NET Micro Framework versions 2.0, 2.5, 3.0, 4.0, and 4.1.

See Also

Reference

Debug Class
Debug Members
Microsoft.SPOT Namespace