HttpContextBase.Error 属性

定义

在派生类中重写时,获取在处理 HTTP 请求时累积的第一个错误(如果有)。

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

属性值

当前 HTTP 请求/响应过程的第一个异常,或者在 null HTTP 请求处理期间没有累积错误。

例外

适用于