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) |
确定操作名称在指定的控制器上下文中是否有效。 |