ResourceExecutedContext.Exception Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets or set the current Exception.
public:
virtual property Exception ^ Exception { Exception ^ get(); void set(Exception ^ value); };
public virtual Exception Exception { get; set; }
public virtual Exception? Exception { get; set; }
member this.Exception : Exception with get, set
Public Overridable Property Exception As Exception
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.