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)

判斷屬性是否會使用指定的控制器內容來標記不是動作方法的方法。

適用於