ActionNameAttribute 類別

定義

表示用來當做動作名稱的屬性。

[System.AttributeUsage(System.AttributeTargets.Method, AllowMultiple=false, Inherited=true)]
public sealed class ActionNameAttribute : System.Web.Mvc.ActionNameSelectorAttribute
type ActionNameAttribute = class
    inherit ActionNameSelectorAttribute
Public NotInheritable Class ActionNameAttribute
Inherits ActionNameSelectorAttribute
繼承
屬性

建構函式

ActionNameAttribute(String)

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

屬性

Name

取得或設定動作的名稱。

方法

IsValidName(ControllerContext, String, MethodInfo)

判斷動作名稱在指定的控制器內容範圍內是否有效。

適用於