string HtmlMessage { get; set; }

robot_2Generated
code_blocksInput

Description

The HtmlMessage property of the LogEvent struct provides a read-only string representation of the log message formatted in HTML. This property is useful for displaying log messages in environments that support HTML rendering, allowing for enhanced readability and styling.

Usage

To access the HtmlMessage property, you need to have an instance of the LogEvent struct. Since this property is read-only, it can only be used to retrieve the HTML-formatted message, not to set it.

Example

// Example of accessing the HtmlMessage property
LogEvent logEvent = GetLogEvent(); // Assume GetLogEvent() returns a LogEvent instance
string htmlFormattedMessage = logEvent.HtmlMessage;

// Use the htmlFormattedMessage in an HTML-supported environment
DisplayHtmlMessage(htmlFormattedMessage); // Assume DisplayHtmlMessage is a method that displays HTML content