ExceptionContext 建構函式
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
ExceptionContext() |
初始化 ExceptionContext 類別的新執行個體。 |
ExceptionContext(ControllerContext, Exception) |
使用指定的控制器內容,為指定的例外狀況初始化 類別的新實例 ExceptionContext 。 |
ExceptionContext()
ExceptionContext(ControllerContext, Exception)
使用指定的控制器內容,為指定的例外狀況初始化 類別的新實例 ExceptionContext 。
public ExceptionContext (System.Web.Mvc.ControllerContext controllerContext, Exception exception);
new System.Web.Mvc.ExceptionContext : System.Web.Mvc.ControllerContext * Exception -> System.Web.Mvc.ExceptionContext
Public Sub New (controllerContext As ControllerContext, exception As Exception)
參數
- controllerContext
- ControllerContext
控制器內容。
- exception
- Exception
例外狀況。
例外狀況
exception
參數為 null。