ExceptionContext 類別

定義

提供使用 HandleErrorAttribute 類別的內容。

public class ExceptionContext : System.Web.Mvc.ControllerContext
type ExceptionContext = class
    inherit ControllerContext
Public Class ExceptionContext
Inherits ControllerContext
繼承
ExceptionContext

建構函式

ExceptionContext()

初始化 ExceptionContext 類別的新執行個體。

ExceptionContext(ControllerContext, Exception)

使用指定的控制器內容,為指定的例外狀況初始化 類別的新實例 ExceptionContext

屬性

Controller

取得或設定控制器。

(繼承來源 ControllerContext)
DisplayMode

取得顯示模式。

(繼承來源 ControllerContext)
Exception

取得或設定例外狀況物件。

ExceptionHandled

取得或設定值,這個值表示是否已處理例外狀況。

HttpContext

取得或設定 HTTP 內容。

(繼承來源 ControllerContext)
IsChildAction

取得值,該值表示相關聯動作方法是否為子系動作。

(繼承來源 ControllerContext)
ParentActionViewContext

取得物件,該物件包含父代動作方法的檢視內容資訊。

(繼承來源 ControllerContext)
RequestContext

取得或設定要求內容。

(繼承來源 ControllerContext)
Result

取得或設定動作結果。

RouteData

取得或設定 URL 路徑資料。

(繼承來源 ControllerContext)

適用於