IdeaBlade DevForce 2010 Help Reference
Assert(Boolean,String) Method
See Also  Send Feedback
IdeaBlade.Core Assembly > IdeaBlade.Core Namespace > TraceFns Class > Assert Method : Assert(Boolean,String) Method



condition
message
Asserts that the specified condition is true; raises an exception if it is not.

Syntax

Visual Basic (Declaration) 
<ConditionalAttribute("TRACE")>
Public Overloads Shared Sub Assert( _
   ByVal condition As Boolean, _
   ByVal message As String _
) 
Visual Basic (Usage)Copy Code
Dim condition As Boolean
Dim message As String
 
TraceFns.Assert(condition, message)
C# 
[ConditionalAttribute("TRACE")]
public static void Assert( 
   bool condition,
   string message
)
C++/CLI 
[ConditionalAttribute("TRACE")]
public:
static void Assert( 
   bool condition,
   String^ message
) 

Parameters

condition
message

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2013 All Rights Reserved.