Assert Method

Debug.Assert Method

 

Checks for a condition; if the condition is false, outputs messages and displays a message box that shows the call stack.

Namespace:   System.Diagnostics
Assembly:  System (in System.dll)

NameDescription
System_CAPS_pubmethodSystem_CAPS_staticAssert(Boolean)

Checks for a condition; if the condition is false, displays a message box that shows the call stack.

System_CAPS_pubmethodSystem_CAPS_staticAssert(Boolean, String)

Checks for a condition; if the condition is false, outputs a specified message and displays a message box that shows the call stack.

System_CAPS_pubmethodSystem_CAPS_staticAssert(Boolean, String, String)

Checks for a condition; if the condition is false, outputs two specified messages and displays a message box that shows the call stack.

System_CAPS_pubmethodSystem_CAPS_staticAssert(Boolean, String, String, Object[])

Checks for a condition; if the condition is false, outputs two messages (simple and formatted) and displays a message box that shows the call stack.

Return to top
Show:
© 2016 Microsoft