TraceHelperWriteLineIf Method (Boolean, String, String, Object) |
Writes the message with the remark of the category specified to the trace output with a newline, if condition is true. Will not format the message if the condition is false.
Namespace:
SD.LLBLGen.Pro.ORMSupportClasses
Assembly:
SD.LLBLGen.Pro.ORMSupportClasses (in SD.LLBLGen.Pro.ORMSupportClasses.dll) Version: 5.6.0.0 (5.6.19.0117)
Syntax public static void WriteLineIf(
bool condition,
string messageInFormat,
string category,
params Object[] argumentsForMessage
)
Public Shared Sub WriteLineIf (
condition As Boolean,
messageInFormat As String,
category As String,
ParamArray argumentsForMessage As Object()
)
Parameters
- condition
- Type: SystemBoolean
Condition to test if the message has to be written (true) or not (false) - messageInFormat
- Type: SystemString
Message to write to the trace output, in string.Format format - category
- Type: SystemString
Category to specify with the message - argumentsForMessage
- Type: SystemObject
The arguments for the message to be used in string.Format.
See Also