EventLogEntry.Message Property
.NET Framework 4
Gets the localized message associated with this event entry.
Assembly: System (in System.dll)
Property Value
Type: System.StringThe formatted, localized text for the message. This includes associated replacement strings.
| Exception | Condition |
|---|---|
| Exception | The space could not be allocated for one of the insertion strings associated with the message. |
Getting this property opens the registry to determine the file name of the .dll file that contains the localized text. If you receive a registry error when testing your source code, verify that the .dll file exists on the computer. If insertion strings are included in the message, catch errors in their allocation.
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.