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
ControllerDescriptor
Derived
Implements

Constructors

Name Description
ControllerDescriptor()

Initializes a new instance of the ControllerDescriptor class.

Properties

Name Description
ControllerName

Gets the name of the controller.

ControllerType

Gets the type of the controller.

UniqueId

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

Methods

Name Description
FindAction(ControllerContext, String)

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

GetCanonicalActions()

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

GetCustomAttributes(Boolean)

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

GetCustomAttributes(Type, Boolean)

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

GetFilterAttributes(Boolean)

Gets the filter attributes.

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