O'Reilly logo

VB.NET Language in a Nutshell, Second Edition by Steven Roman PhD, Paul Lomax, Ron Petrusha

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Name

Debug.WriteIf Method

Class

System.Diagnostics.Debug

Syntax

Debug.WriteIf(condition, message[, Category])

or:

Debug.WriteIf(condition, value[, Category])
condition (required; Boolean)

Condition required for output to proceed

message (required; String)

The string to be sent to the Output window, or the object whose name is to be sent to the Output window

value (required; any)

An object whose name is to be sent to the Output window

Category (optional; String)

A category name used to group output messages

Description

Prints text in the Output window in the design-time environment, provided that condition is True

Rules at a Glance

This method behaves identically to Debug.Write, with the exception that nothing is output unless condition is True.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required