LoggerWriteIf Method (Boolean, String) |
Writes the specified message to appenders if condition is true.
Namespace:
Aspose.Email.Tools.Logging
Assembly:
Aspose.Email (in Aspose.Email.dll) Version: 20.2
Syntax public void WriteIf(
bool condition,
string message
)
Public Sub WriteIf (
condition As Boolean,
message As String
)
public:
void WriteIf(
bool condition,
String^ message
)
member WriteIf :
condition : bool *
message : string -> unit
Parameters
- condition
- Type: SystemBoolean
The condition to test. - message
- Type: SystemString
The message to write.
See Also