HttpContextWrapper.Error 属性

定义

获取处理 HTTP 请求时累积的第一个错误(如果有)。

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

属性值

当前 HTTP 请求的第一个异常,或者在 null 处理 HTTP 请求时没有累积错误。 默认值为 null

适用于