Share via


Debug.Assert Method (Boolean, 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
)

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.

Version Information

Available in .NET Micro Framework version 2.0, 2.5

See Also

Reference

Debug Class
Debug Members
Microsoft.SPOT Namespace