Contract.Assert Method (Boolean)
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Checks for a condition; if the condition is false, follows the escalation policy set for the analyzer.
Assembly: mscorlib (in mscorlib.dll)
'Declaration <ConditionalAttribute("DEBUG")> _ <ConditionalAttribute("CONTRACTS_FULL")> _ Public Shared Sub Assert ( _ condition As Boolean _ )
Parameters
- condition
- Type: System.Boolean
The conditional expression to test.
Show: