IGenericEvent.FormatMessage(IFormatProvider, String) Method

Definition

Gets the formatted message for the event.

public string FormatMessage (IFormatProvider formatProvider, string flagsSeparator = ", ");
abstract member FormatMessage : IFormatProvider * string -> string
Public Function FormatMessage (formatProvider As IFormatProvider, Optional flagsSeparator As String = ", ") As String

Parameters

formatProvider
IFormatProvider

An IFormatProvider that specifies how the message should be formatted.

flagsSeparator
String

A String that represents the separator between flag values in the formatted message.

Returns

The formatted message for the event.

Remarks

This method takes the message template for the event, substitutes in real values for the placeholders in the template, and formats the result according to the IFormatProvider.

Applies to