The FormatMessageText method retrieves the message's first- and second-level texts and inserts the replacement data provided in the message parameter. The FormatMessage method affects the first level texts.
Syntax
public static bool FormatMessageText(string msgFilePath, Message message, out string firstLevelText, out string secondLevelText)
Parameters
- msgFilePath
- String. The file path for the message being formatted.
- message
- An instance of an ASNA.Monarch.Message object being formatted.
Return Value
String. The formatted message.
Exceptions
The following exceptions may be encountered during the execution of this method.
Value | Condition |
---|---|
InvalidMesssageFormatException | The message file is not properly formatted. |
Requirements
Namespace: | ASNA.Monarch |
Assembly: | ASNA.Monarch.WebDspF.DLL |
Platforms: | Windows Server 2008 R2, Windows Server 2012, Windows 7, Windows 8 Pro, Windows 10 Pro |