Table of Contents

Class HttpActionContext

Namespace
System.Web.Http.Controllers
Assembly
System.Web.Http.dll

Contains information for the executing action.

public class HttpActionContext
Inheritance
HttpActionContext
Inherited Members

Constructors

HttpActionContext()

Initializes a new instance of the HttpActionContext class.

public HttpActionContext()

HttpActionContext(HttpControllerContext, HttpActionDescriptor)

Initializes a new instance of the HttpActionContext class.

public HttpActionContext(HttpControllerContext controllerContext, HttpActionDescriptor actionDescriptor)

Parameters

controllerContext HttpControllerContext

The controller context.

actionDescriptor HttpActionDescriptor

The action descriptor.

Properties

ActionArguments

Gets a list of action arguments.

public Dictionary<string, object> ActionArguments { get; }

Property Value

Dictionary<string, object>

A list of action arguments.

ActionDescriptor

Gets or sets the action descriptor for the action context.

public HttpActionDescriptor ActionDescriptor { get; set; }

Property Value

HttpActionDescriptor

The action descriptor.

ControllerContext

Gets or sets the controller context.

public HttpControllerContext ControllerContext { get; set; }

Property Value

HttpControllerContext

The controller context.

ModelState

Gets the model state dictionary for the context.

public ModelStateDictionary ModelState { get; }

Property Value

ModelStateDictionary

The model state dictionary.

Request

Gets the request message for the action context.

public HttpRequestMessage Request { get; }

Property Value

HttpRequestMessage

The request message for the action context.

Response

Gets or sets the response message for the action context.

public HttpResponseMessage Response { get; set; }

Property Value

HttpResponseMessage

The response message for the action context.