ResourceExecutedContext.ExceptionDispatchInfo Property

Definition

Gets or set the current Exception.

public:
 virtual property System::Runtime::ExceptionServices::ExceptionDispatchInfo ^ ExceptionDispatchInfo { System::Runtime::ExceptionServices::ExceptionDispatchInfo ^ get(); void set(System::Runtime::ExceptionServices::ExceptionDispatchInfo ^ value); };
public virtual System.Runtime.ExceptionServices.ExceptionDispatchInfo ExceptionDispatchInfo { get; set; }
public virtual System.Runtime.ExceptionServices.ExceptionDispatchInfo? ExceptionDispatchInfo { get; set; }
member this.ExceptionDispatchInfo : System.Runtime.ExceptionServices.ExceptionDispatchInfo with get, set
Public Overridable Property ExceptionDispatchInfo As ExceptionDispatchInfo

Property Value

Remarks

Setting Exception or ExceptionDispatchInfo to null will treat the exception as handled, and it will not be rethrown by the runtime.

Setting ExceptionHandled to true will also mark the exception as handled.

Applies to