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

適用於