LoggingEvent ExceptionObject 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.8.0-.NET 4.0
Syntax

C#
VB
C++
F#
Copy

    public Exception ExceptionObject { get; }

    Public ReadOnly Property ExceptionObject As Exception
    	Get

    public:
    property Exception^ ExceptionObject {
    	Exception^ get ();
    }

    member ExceptionObject : Exception with 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

LoggingEvent Class
log4net.Core Namespace