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


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

    Parameters

    condition
    message
    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