Cocktail Help Reference
DebugWriteLineIf Method
See Also  Send Feedback
Cocktail Assembly > Cocktail Namespace > LogFns Class : DebugWriteLineIf Method



condition
aObject
The object to be written to the log.

Glossary Item Box

Write a string representation of an object to the log for debug builds of Cocktail if the specified condition is true.

Syntax

Visual Basic (Declaration) 
<ConditionalAttribute("DEBUG")>
Public Shared Sub DebugWriteLineIf( _
   ByVal condition As Boolean, _
   ByVal aObject As Object _
) 
Visual Basic (Usage)Copy Code
Dim condition As Boolean
Dim aObject As Object
 
LogFns.DebugWriteLineIf(condition, aObject)
C# 
[ConditionalAttribute("DEBUG")]
public static void DebugWriteLineIf( 
   bool condition,
   object aObject
)
C++/CLI 
[ConditionalAttribute("DEBUG")]
public:
static void DebugWriteLineIf( 
   bool condition,
   Object^ aObject
) 

Parameters

condition
aObject
The object to be written to the log.

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2013 All Rights Reserved.