HttpContext.Error 屬性

定義

取得在 HTTP 要求處理期間累積的第一個錯誤 (如果有的話)。

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

屬性值

目前 HTTP 要求/回應處理序的第一個 Exception;如果在 HTTP 要求處理期間未累積任何錯誤,則為 null。 預設為 null

適用於

另請參閱