HandleErrorAttribute 類別

定義

表示用來處理動作方法所擲回之例外狀況的屬性。

[System.AttributeUsage(System.AttributeTargets.Class | System.AttributeTargets.Method, AllowMultiple=true, Inherited=true)]
public class HandleErrorAttribute : System.Web.Mvc.FilterAttribute, System.Web.Mvc.IExceptionFilter
type HandleErrorAttribute = class
    inherit FilterAttribute
    interface IExceptionFilter
Public Class HandleErrorAttribute
Inherits FilterAttribute
Implements IExceptionFilter
繼承
HandleErrorAttribute
屬性
實作

建構函式

HandleErrorAttribute()

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

屬性

AllowMultiple

取得或設定值,這個值表示是否可以指定多個篩選條件屬性執行個體。

(繼承來源 FilterAttribute)
ExceptionType

取得或設定例外狀況的型別。

Master

取得或設定用來顯示例外狀況資訊的主版檢視。

Order

取得或設定動作篩選條件的執行順序。

(繼承來源 FilterAttribute)
TypeId

取得此屬性的唯一識別項。

View

取得或設定用來顯示例外狀況資訊的頁面檢視。

方法

OnException(ExceptionContext)

在發生例外狀況時呼叫。

適用於