ResourceExecutedContext.Exception 属性

定义

获取或设置当前 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

属性值

注解

将 或 ExceptionDispatchInfo 设置为 nullException 会将异常视为已处理,运行时不会重新引发该异常。

将 设置为 ExceptionHandledtrue 还会将异常标记为已处理。

适用于