ActionDescriptor 类

定义

提供有关操作方法的信息,如操作方法的名称、控制器、参数、特性和筛选器。

public abstract class ActionDescriptor : System.Reflection.ICustomAttributeProvider
type ActionDescriptor = class
    interface ICustomAttributeProvider
Public MustInherit Class ActionDescriptor
Implements ICustomAttributeProvider
继承
ActionDescriptor
派生
实现

构造函数

ActionDescriptor()

初始化 ActionDescriptor 类的新实例。

属性

ActionName

获取操作方法的名称。

ControllerDescriptor

获取控制器描述符。

UniqueId

使用延迟初始化来获取操作描述符的唯一 ID。

方法

Execute(ControllerContext, IDictionary<String,Object>)

使用指定的参数和控制器上下文来执行操作方法。

GetCustomAttributes(Boolean)

返回为此成员定义的自定义特性的数组,指定的特性除外。

GetCustomAttributes(Type, Boolean)

返回为此成员定义的、按类型标识的自定义属性数组。

GetFilterAttributes(Boolean)

获取筛选器特性。

GetFilters()
已过时.

返回与此操作方法关联的筛选器。

GetParameters()

返回操作方法的参数。

GetSelectors()

返回操作方法选择器。

IsDefined(Type, Boolean)

确定是否为此成员定义指定特性类型的一个或多个实例。

适用于