NonActionAttribute 类

定义

表示一个特性,该特性用于指示控制器方法不是操作方法。

[System.AttributeUsage(System.AttributeTargets.Method, AllowMultiple=false, Inherited=true)]
public sealed class NonActionAttribute : System.Web.Mvc.ActionMethodSelectorAttribute
type NonActionAttribute = class
    inherit ActionMethodSelectorAttribute
Public NotInheritable Class NonActionAttribute
Inherits ActionMethodSelectorAttribute
继承
属性

构造函数

NonActionAttribute()

初始化 NonActionAttribute 类的新实例。

方法

IsValidForRequest(ControllerContext, MethodInfo)

使用指定的控制器上下文确定该特性是否标记一个不是操作方法的方法。

适用于