MessageObject Property

log4net SDK Reference |

# LoggingEvent.MessageObject Property

Gets the message object used to initialize this event.

[Visual Basic]
Public ReadOnly Property MessageObject As Object
[C#]
public object MessageObject {get;}

#### Property Value

The message object used to initialize this event.

#### Remarks

Gets the message object used to initialize this event. Note that this event may not have a valid message object. If the event is serialized the message object will not be transferred. To get the text of the message the RenderedMessage property must be used not this property.

If there is no defined message object for this event then null will be returned.

#### See Also

LoggingEvent Class | log4net.Core Namespace