DebugUtilities.DebugAssert Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
DebugAssert(Boolean) |
Asserts a condition. |
DebugAssert(Boolean, String) |
Asserts a condition. |
DebugAssert(Boolean)
Asserts a condition.
public:
static void DebugAssert(bool condition);
public static void DebugAssert (bool condition);
static member DebugAssert : bool -> unit
Public Shared Sub DebugAssert (condition As Boolean)
Parameters
- condition
- Boolean
The condition that is expected to be true.
Applies to
DebugAssert(Boolean, String)
Asserts a condition.
public:
static void DebugAssert(bool condition, System::String ^ message);
public static void DebugAssert (bool condition, string message);
static member DebugAssert : bool * string -> unit
Public Shared Sub DebugAssert (condition As Boolean, message As String)
Parameters
- condition
- Boolean
The condition that is expected to be true.
- message
- String
The message to display if the condition evaluates to false.