NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

EventLogEntry.Message

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;

Property Value

The formatted, localized text for the message. This includes associated replacement strings.

Exceptions

Exception Type Condition
Exception The space could not be allocated for one of the insertion strings associated with the message.

Remarks

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.

See Also

EventLogEntry Class | EventLogEntry Members | System.Diagnostics Namespace