Debug.WriteLineIf Method

   
Debug.WriteLineIf Method

Class

System.Diagnostics.Debug

Syntax

 Debug.WriteLineIf(   booleanexpression   ,   Output   [,   Category   ]) 
booleanexpression (required; Boolean)

Condition required for output to be produced

Output (required; String or Object)

The string to be sent to the Output window, or the 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 followed by a newline character in the Output window in the design- time environment, provided that booleanexpression is True

Rules at a Glance

This method behaves identically to Debug.WriteLine, except that nothing is output unless booleanexpression is True .

See Also

Debug.Write Method, Debug.WriteIf Method, Debug.WriteLine Method

   


VB.Net Language in a Nutshell
VB.NET Language in a Nutshell
ISBN: B00006L54Q
EAN: N/A
Year: 2002
Pages: 503

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net