DevForce Help Reference
Assert(Boolean,String) Method


Asserts that the specified condition is true; raises an exception if it is not.
Syntax
'Declaration
 
<ConditionalAttribute("TRACE")>
Public Overloads Shared Sub Assert( _
   ByVal condition As Boolean, _
   ByVal message As String _
) 
'Usage
 
Dim condition As Boolean
Dim message As String
 
TraceFns.Assert(condition, message)
[Conditional("TRACE")]
public static void Assert( 
   bool condition,
   string message
)

Parameters

condition
message
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

TraceFns Class
TraceFns Members
Overload List

Send Feedback