VB.NET Language in a Nutshell

   
Debug.Assert Method

Class

System.Diagnostics.Debug

Syntax

Debug .Assert( booleanexpression [[, string1 ], string2 ])

booleanexpression (required; Boolean)

Expression that evaluates to a Boolean value.

string1 (required; String)

String to output if booleanexpression is False .

string2 (required; String)

Detailed string to output. If booleanexpression is False , string2 is output to Output window.

Return Value

None

Description

Outputs messages to the Output window if the condition is False

Rules at a Glance

booleanexpression must evaluate to a Boolean value.

Programming Tips and Gotchas

   

Категории