HttpContext.AddError(Exception) HttpContext.AddError(Exception) HttpContext.AddError(Exception) HttpContext.AddError(Exception) Method

定義

加入例外狀況 (Exception) 至目前 HTTP 要求的例外狀況集合。Adds an exception to the exception collection for the current HTTP request.

public:
 void AddError(Exception ^ errorInfo);
public void AddError (Exception errorInfo);
member this.AddError : Exception -> unit
Public Sub AddError (errorInfo As Exception)

參數

errorInfo
Exception Exception Exception Exception

要加入到例外狀況集合中的 ExceptionThe Exception to add to the exception collection.

適用於