Checks for a condition and outputs the message and the call stack if the condition is false.
Namespace:
C1.SilverlightAssembly: C1.Silverlight (in C1.Silverlight.dll)
Syntax
C# |
---|
public static void Assert( bool condition, string message, string detailMessageFormat, params Object[] args ) |
Visual Basic |
---|
Public Shared Sub Assert ( _ condition As Boolean, _ message As String, _ detailMessageFormat As String, _ ParamArray args As Object() _ ) |
Parameters
- condition
- Type: System..::..Boolean
The conditional expression to evaluate. If the condition is true, the specified message and the call stack are not displayed.
- message
- Type: System..::..String
A message to display.
- detailMessageFormat
- Type: System..::..String
A composite format string that contains text intermixed with zero or more format items, which correspond to objects in the args array.
- args
- Type: array<System..::..Object>[]()[][]
An object array that contains zero or more objects to format.