EventLogEntry.Message Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets the localized message associated with this event entry.
public:
property System::String ^ Message { System::String ^ get(); };
public string Message { get; }
member this.Message : string
Public ReadOnly Property Message As String
Property Value
The formatted, localized text for the message. This includes associated replacement strings.
Exceptions
The space could not be allocated for one of the insertion strings associated with the message.
Remarks
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.
Applies to
See also
.NET