ExceptionResult(Exception, Boolean) 构造函数

定义

初始化 ExceptionResult 类的新实例。

public ExceptionResult (Exception exception, bool includeErrorDetail);
new System.Web.Http.ExceptionResult : Exception * bool -> System.Web.Http.ExceptionResult
Public Sub New (exception As Exception, includeErrorDetail As Boolean)

参数

exception
Exception

要在错误中包含的异常。

includeErrorDetail
Boolean

true 如果错误应包含异常消息,则为; 否则为。否则为 false

适用于