Gets the localized message corresponding to this event entry.
[Visual Basic] Public ReadOnly Property Message As String [C#] public string Message {get;} [C++] public: __property String* get_Message(); [JScript] public function get Message() : String;
The formatted, localized text for the message. This includes associated replacement strings.
Exception Type | Condition |
---|---|
Exception | The space could not be allocated for one of the insertion strings associated with the message. |
This method opens the Windows Registry to determine the filename of the .DLL file containing the localized text. If you receive a Registry error when testing your source code, verify the .DLL file's existence on the computer. If insertion strings are included in the message, catch errors in their allocation.
EventLogEntry Class | EventLogEntry Members | System.Diagnostics Namespace