ActionDescriptor ActionDescriptor ActionDescriptor Class

Definition

Provides information about an action method, such as its name, controller, parameters, attributes, and filters.

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

Constructors

ActionDescriptor() ActionDescriptor() ActionDescriptor()

Initializes a new instance of the ActionDescriptor class.

Properties

ActionName ActionName ActionName

Gets the name of the action method.

ControllerDescriptor ControllerDescriptor ControllerDescriptor

Gets the controller descriptor.

UniqueId UniqueId UniqueId

Gets the unique ID for the action descriptor using lazy initialization.

Methods

Execute(ControllerContext, IDictionary<String,Object>) Execute(ControllerContext, IDictionary<String,Object>) Execute(ControllerContext, IDictionary<String,Object>)

Executes the action method by using the specified parameters and controller context.

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

Returns an array of custom attributes that are defined for this member, excluding named attributes.

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

Returns an array of custom attributes that are defined for this member, identified by type.

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

Gets the filter attributes.

GetFilters() GetFilters() GetFilters()

Returns the filters that are associated with this action method.

GetParameters() GetParameters() GetParameters()

Returns the parameters of the action method.

GetSelectors() GetSelectors() GetSelectors()

Returns the action-method selectors.

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

Determines whether one or more instances of the specified attribute type are defined for this member.

Applies to