ResourceExecutedContext.Exception Property

Definition

Gets or set the current Exception.

public:
 virtual property Exception ^ Exception { Exception ^ get(); void set(Exception ^ value); };
public virtual Exception Exception { get; set; }
member this.Exception : Exception with get, set
Public Overridable Property Exception As Exception

Property Value

Exception

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