ResourceExecutedContext.ExceptionDispatchInfo 屬性

定義

取得或設定目前的 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

屬性值

備註

將 或 ExceptionDispatchInfo 設定 Exceptionnull 會將例外狀況視為已處理,而且執行時間不會重新擲回。

將 設定 ExceptionHandledtrue 也會將例外狀況標示為已處理。

適用於