Nevron Open Vision Documentation
Nevron.Nov Namespace / NDebug Class / Assert Method / Assert(Boolean) Method


In This Topic
    Assert(Boolean) Method
    In This Topic
    Checks for a condition, and outputs the call stack if the condition is false.
    Syntax
    'Declaration
     
    
    <System.Diagnostics.ConditionalAttribute("DEBUG")>
    Public Overloads Shared Sub Assert( _
       ByVal condition As System.Boolean _
    ) 
    'Usage
     
    
    Dim condition As System.Boolean
     
    NDebug.Assert(condition)
    [System.Diagnostics.Conditional("DEBUG")]
    public static void Assert( 
       System.bool condition
    )

    Parameters

    condition
    Requirements

    Target Platforms: Windows 11, Windows 10, Windows 7, Windows Server 2019, Windows Server 2016, Windows Server 2012 R2, Windows Server 2012, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later)

    See Also