DevForce Help Reference
WriteLineIf Method (TraceFns)


Write a string representation of an object to the log if the specified condition is true.
Syntax
'Declaration
 
<ConditionalAttribute("TRACE")>
Public Shared Sub WriteLineIf( _
   ByVal condition As Boolean, _
   ByVal value As Object _
) 
'Usage
 
Dim condition As Boolean
Dim value As Object
 
TraceFns.WriteLineIf(condition, value)
[Conditional("TRACE")]
public static void WriteLineIf( 
   bool condition,
   object value
)

Parameters

condition
value
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

TraceFns Class
TraceFns Members

Send Feedback