LoggingEventExceptionObject Property Apache log4net™ SDK Documentation
Gets the exception object used to initialize this event.

Namespace: log4net.Core
Assembly: log4net (in log4net.dll) Version: 2.0.6.0-.NET 4.0
Syntax

public Exception ExceptionObject { get; }

Property Value

Type: Exception
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

Reference