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 框架调用。

适用于