log4net SDK Reference

LoggingEvent.ExceptionObject Property

Gets the exception object used to initialize this event.

[Visual Basic]
Public ReadOnly Property ExceptionObject As Exception
[C#]
public System.Exception ExceptionObject {get;}

Property Value

The exception object used to initialize this event.

Remarks

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

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

See Also

LoggingEvent Class | log4net.Core Namespace