EventLogEntry.Message Property

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Gets the localized message associated with this event entry.

Namespace:   System.Diagnostics
Assembly:  System (in System.dll)

public string Message { get; }

Property Value

Type: System.String

The 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.

.NET Framework
Available since 1.1
Return to top
Show: