Share via


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

Constructors

ActionDescriptor()

Initializes a new instance of the ActionDescriptor class.

Properties

ActionName

Gets the name of the action method.

ControllerDescriptor

Gets the controller descriptor.

UniqueId

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

Methods

Execute(ControllerContext, IDictionary<String,Object>)

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

GetCustomAttributes(Boolean)

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

GetCustomAttributes(Type, Boolean)

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

GetFilterAttributes(Boolean)

Gets the filter attributes.

GetFilters()
Obsolete.

Returns the filters that are associated with this action method.

GetParameters()

Returns the parameters of the action method.

GetSelectors()

Returns the action-method selectors.

IsDefined(Type, Boolean)

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

Applies to