Assert()

Debug::Assert(bool) method

Assert condition and send information on failure.

static void System::Diagnostics::Debug::Assert(bool condition)

Arguments

ParameterTypeDescription
conditionboolCondition value.

Debug::Assert(bool, const String&) method

Assert condition and send information on failure.

static void System::Diagnostics::Debug::Assert(bool condition, const String &message)

Arguments

ParameterTypeDescription
conditionboolCondition value.
messageconst String&Message to populate on assertion failure.

Debug::Assert(bool, const char *) method

Assert condition and send information on failure.

static void System::Diagnostics::Debug::Assert(bool condition, const char *message)

Arguments

ParameterTypeDescription
conditionboolCondition value.
messageconst char *Message to populate on assertion failure.

Debug::Assert(bool, const String&, const String&) method

Assert condition and send information on failure.

static void System::Diagnostics::Debug::Assert(bool condition, const String &message, const String &detailMessage)

Arguments

ParameterTypeDescription
conditionboolCondition value.
messageconst String&Message to populate on assertion failure.
detailMessageconst String&Detailed message to populate on assertion failure.

See Also