Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

Debug.Assert Method

Checks for a condition and displays diagnostics if the condition is false.

This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.

  Name Description
Public method Static member Supported by Silverlight for Windows Phone Supported by Xbox 360 Assert(Boolean) Checks for a condition and outputs the call stack if the condition is false.
Public method Static member Supported by Silverlight for Windows Phone Supported by Xbox 360 Assert(Boolean, String) Checks for a condition and displays a specified message if the condition is false.
Public method Static member Supported by Silverlight for Windows Phone Supported by Xbox 360 Assert(Boolean, String, String) Checks for a condition and displays two specified messages if the condition is false.
Public method Static member Supported by Silverlight for Windows Phone Supported by Xbox 360 Assert(Boolean, String, String, Object[]) Checks for a condition and outputs the message and the call stack if the condition is false.
Top
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

Show:
© 2014 Microsoft