Share via


HttpActionDescriptor Class

Provides information about the action methods.

Inheritance Hierarchy

System.Object
  System.Web.Http.Controllers.HttpActionDescriptor
    System.Web.Http.Controllers.ReflectedHttpActionDescriptor

Namespace:  System.Web.Http.Controllers
Assembly:  System.Web.Http (in System.Web.Http.dll)

Syntax

'Declaration
Public MustInherit Class HttpActionDescriptor
'Usage
Dim instance As HttpActionDescriptor
public abstract class HttpActionDescriptor
public ref class HttpActionDescriptor abstract
[<AbstractClassAttribute>]
type HttpActionDescriptor =  class end
public abstract class HttpActionDescriptor

The HttpActionDescriptor type exposes the following members.

Constructors

  Name Description
Protected method HttpActionDescriptor() Initializes a new instance of the HttpActionDescriptor class.
Protected method HttpActionDescriptor(HttpControllerDescriptor) Initializes a new instance of the HttpActionDescriptor class with specified information that describes the controller of the action.

Top

Properties

  Name Description
Public property ActionBinding Gets or sets the binding that describes the action.
Public property ActionName Gets the name of the action.
Public property Configuration Gets or sets the action configuration.
Public property ControllerDescriptor Gets the information that describes the controller of the action.
Public property Properties Gets the properties associated with this instance.
Public property ResultConverter Gets the converter for correctly transforming the result of calling ExecuteAsync(HttpControllerContext, IDictionary<String, Object>)" into an instance of HttpResponseMessage.
Public property ReturnType Gets the return type of the descriptor.
Public property SupportedHttpMethods Gets the collection of supported HTTP methods for the descriptor.

Top

Methods

  Name Description
Public method Equals (Inherited from Object.)
Public method ExecuteAsync Executes the described action and returns a Task<TResult> that once completed will contain the return value of the action.
Protected method Finalize (Inherited from Object.)
Public method GetCustomAttributes<T> Returns the custom attributes associated with the action descriptor.
Public method GetFilterPipeline Retrieves the filters for the given configuration and action.
Public method GetFilters Retrieves the filters for the action descriptor.
Public method GetHashCode (Inherited from Object.)
Public method GetParameters Retrieves the parameters for the action descriptor.
Public method GetType (Inherited from Object.)
Protected method MemberwiseClone (Inherited from Object.)
Public method ToString (Inherited from Object.)

Top

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

System.Web.Http.Controllers Namespace