System.UnhandledExceptionEventArgs.ExceptionObject Property

Gets the unhandled exception object.

Syntax

[get: System.Runtime.ConstrainedExecution.ReliabilityContract(System.Runtime.ConstrainedExecution.Consistency.WillNotCorruptState, System.Runtime.ConstrainedExecution.Cer.Success)]
public object ExceptionObject { get; }

Value

A object, typically a Exception, that is the cause of the current event.

Remarks

This property is read-only.

Requirements

Namespace: System
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0