Share via


ReflectedActionDescriptor 类

定义

包含描述反射的操作方法的信息。

public class ReflectedActionDescriptor : System.Web.Mvc.ActionDescriptor, System.Web.Mvc.IMethodInfoActionDescriptor
type ReflectedActionDescriptor = class
    inherit ActionDescriptor
    interface IMethodInfoActionDescriptor
Public Class ReflectedActionDescriptor
Inherits ActionDescriptor
Implements IMethodInfoActionDescriptor
继承
ReflectedActionDescriptor
实现

构造函数

ReflectedActionDescriptor(MethodInfo, String, ControllerDescriptor)

初始化 ReflectedActionDescriptor 类的新实例。

属性

ActionName

获取操作的名称。

ControllerDescriptor

获取控制器描述符。

MethodInfo

获取或设置操作方法信息。

UniqueId

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

方法

Execute(ControllerContext, IDictionary<String,Object>)

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

GetCustomAttributes(Boolean)

返回为此成员定义的自定义属性数组,不包括命名属性。

GetCustomAttributes(Type, Boolean)

返回为此成员定义的自定义特性的数组(按类型标识)。

GetFilterAttributes(Boolean)

获取筛选器特性。

GetFilters()
已过时.

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

(继承自 ActionDescriptor)
GetParameters()

检索操作方法的参数。

GetSelectors()

检索操作选择器。

IsDefined(Type, Boolean)

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

适用于