MSDN说HttpContent.Error返回第一个错误,而GetLastError()显然是最后一个错误,但我似乎没有任何区别使用.
哪个是用于错误记录的大炮方法?
@L_502_0@返回第一个错误.
HttpContext.Server返回一个HttpServerUtility类的实例,它为HttpContext提供了方便的包装器,包括
HttpContext.Server
HttpContext.Server.GetLastError(),它返回HttpContext.Error(使用Reflector验证).
HttpContext.Server.GetLastError()