Share via


ControllerDescriptor 类

定义

封装描述控制器的信息,如控制器的名称、类型和操作。

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

构造函数

ControllerDescriptor()

初始化 ControllerDescriptor 类的新实例。

属性

ControllerName

获取控制器的名称。

ControllerType

获取控制器的类型。

UniqueId

在派生类中实现时,通过使用延迟初始化来获取控制器描述符的唯一 ID。

方法

FindAction(ControllerContext, String)

使用指定的名称和控制器上下文来查找操作方法。

GetCanonicalActions()

在控制器中检索操作方法描述符的列表。

GetCustomAttributes(Boolean)

检索为此成员定义的自定义特性,指定的特性除外。

GetCustomAttributes(Type, Boolean)

检索为此成员定义的指定类型的自定义特性(指定的特性除外)。

GetFilterAttributes(Boolean)

获取筛选器特性。

IsDefined(Type, Boolean)

检索一个值,该值指示是否为此成员定义指定的自定义特性的一个或多个实例。

适用于