HttpContext.Error 屬性

定義

在 HTTP 請求處理過程中,會收到第一個錯誤(如果有的話)。

public:
 property Exception ^ Error { Exception ^ get(); };
public Exception Error { get; }
member this.Error : Exception
Public ReadOnly Property Error As Exception

屬性值

第一個 Exception 用於目前的 HTTP 請求/回應程序;否則, null 若 HTTP 請求處理過程中未累積錯誤。 預設值為 null

適用於

另請參閱