ActionNameAttribute 類別
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
表示用來當做動作名稱的屬性。
[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) |
判斷動作名稱在指定的控制器內容範圍內是否有效。 |