ActionFilterAttribute 類別

定義

表示篩選條件屬性的基底類別。

[System.AttributeUsage(System.AttributeTargets.Class | System.AttributeTargets.Method, AllowMultiple=false, Inherited=true)]
public abstract class ActionFilterAttribute : System.Web.Mvc.FilterAttribute, System.Web.Mvc.IActionFilter, System.Web.Mvc.IResultFilter
type ActionFilterAttribute = class
    inherit FilterAttribute
    interface IActionFilter
    interface IResultFilter
Public MustInherit Class ActionFilterAttribute
Inherits FilterAttribute
Implements IActionFilter, IResultFilter
繼承
ActionFilterAttribute
衍生
屬性
實作

建構函式

ActionFilterAttribute()

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

屬性

AllowMultiple

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

(繼承來源 FilterAttribute)
Order

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

(繼承來源 FilterAttribute)

方法

OnActionExecuted(ActionExecutedContext)

在動作方法執行之後,由 ASP.NET MVC 架構呼叫。

OnActionExecuting(ActionExecutingContext)

在動作方法執行之前,由 ASP.NET MVC 架構呼叫。

OnResultExecuted(ResultExecutedContext)

在動作結果執行之後,由 ASP.NET MVC 架構呼叫。

OnResultExecuting(ResultExecutingContext)

在動作結果執行之前,由 ASP.NET MVC 架構呼叫。

適用於