ControllerDescriptor ControllerDescriptor ControllerDescriptor Class

Definition

Encapsulates information that describes a controller, such as its name, type, and actions.

public abstract class ControllerDescriptor : System.Reflection.ICustomAttributeProvider
type ControllerDescriptor = class
    interface ICustomAttributeProvider
Public MustInherit Class ControllerDescriptor
Implements ICustomAttributeProvider
Inheritance
ControllerDescriptorControllerDescriptorControllerDescriptor
Derived
Implements

Constructors

ControllerDescriptor() ControllerDescriptor() ControllerDescriptor()

Initializes a new instance of the ControllerDescriptor class.

Properties

ControllerName ControllerName ControllerName

Gets the name of the controller.

ControllerType ControllerType ControllerType

Gets the type of the controller.

UniqueId UniqueId UniqueId

When implemented in a derived class, gets the unique ID for the controller descriptor using lazy initialization.

Methods

FindAction(ControllerContext, String) FindAction(ControllerContext, String) FindAction(ControllerContext, String)

Finds an action method by using the specified name and controller context.

GetCanonicalActions() GetCanonicalActions() GetCanonicalActions()

Retrieves a list of action-method descriptors in the controller.

GetCustomAttributes(Boolean) GetCustomAttributes(Boolean) GetCustomAttributes(Boolean)

Retrieves custom attributes that are defined for this member, excluding named attributes.

GetCustomAttributes(Type, Boolean) GetCustomAttributes(Type, Boolean) GetCustomAttributes(Type, Boolean)

Retrieves custom attributes of a specified type that are defined for this member, excluding named attributes.

GetFilterAttributes(Boolean) GetFilterAttributes(Boolean) GetFilterAttributes(Boolean)

Gets the filter attributes.

IsDefined(Type, Boolean) IsDefined(Type, Boolean) IsDefined(Type, Boolean)

Retrieves a value that indicates whether one or more instance of the specified custom attribute are defined for this member.

Applies to