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)

この属性で、指定されたコントローラー コンテキストを使用してアクション メソッドではないメソッドをマークするかどうかを確認します。

適用対象