Assert Method (Boolean)

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

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

'Declaration
<ConditionalAttribute("DEBUG")> _
Public Shared Sub Assert ( _
    condition As Boolean _
)
[ConditionalAttribute("DEBUG")]
public static void Assert(
    bool condition
)
[ConditionalAttribute(L"DEBUG")]
public:
static void Assert(
    bool condition
)
[<ConditionalAttribute("DEBUG")>]
static member Assert : 
        condition:bool -> unit 
public static function Assert(
    condition : boolean
)

Parameters

  • condition
    Type: System. . :: . .Boolean
    The condition to be evaluated. If the value is false, program execution stops.

.NET Framework Security

See Also

Reference

Debug Class

Assert Overload

Microsoft.SPOT Namespace