Aracılığıyla paylaş


Debug.Assert Method

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Include Protected Members
Include Inherited Members

Include Silverlight Members
Include Silverlight for Windows Phone Members
Include XNA Framework Members

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.

Overload List

  Name Description
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 Assert(Boolean) Checks for a condition and outputs the call stack if the condition is false.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 Assert(Boolean, String) Checks for a condition and displays a specified message if the condition is false.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 Assert(Boolean, String, String) Checks for a condition and displays two specified messages if the condition is false.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 Assert(Boolean, String, String, array<Object[]) Checks for a condition and outputs the message and the call stack if the condition is false.

Top