Basic Library for WPF and Silverlight | ComponentOne
C1.Silverlight Namespace / Trace Class / Assert Method / Assert(Boolean,String) Method
The conditional expression to evaluate. If the condition is true, the specified message is not displayed.
A message to display.

In This Topic
    Assert(Boolean,String) Method
    In This Topic
    Checks for a condition and displays a specified message if the condition is false.
    Syntax
    'Declaration
     
    
    Public Overloads Shared Sub Assert( _
       ByVal condition As Boolean, _
       ByVal message As String _
    ) 
    public static void Assert( 
       bool condition,
       string message
    )

    Parameters

    condition
    The conditional expression to evaluate. If the condition is true, the specified message is not displayed.
    message
    A message to display.
    See Also