Formats the exception as a string using the catalog provided in the exception itself.

C# | Visual Basic | Visual C++ | F# |

- ignoreInserts (Boolean)
- If true then inserts from the exception are not added into the formatted message.

String containing the formatted message, but null is returned if the message cannot be found in the catalog or the catalog cannot be found.

Inserts present in the exception can be added if desired. Inserts that are null are represented by empty strings.
Note that any tabs or newlines present in the formatted message are removed before the string is returned.

Exception | Condition |
---|---|
SecurityException | Thrown if the registry cannot be accessed. |
UnauthorizedAccessException | Thrown if the catalog entry in the registry cannot be accessed. |