HttpActionContext Class
Contains information for the executing action.
Inheritance Hierarchy
System.Object
System.Web.Http.Controllers.HttpActionContext
Namespace: System.Web.Http.Controllers
Assembly: System.Web.Http (in System.Web.Http.dll)
Syntax
'Declaration
Public Class HttpActionContext
'Usage
Dim instance As HttpActionContext
public class HttpActionContext
public ref class HttpActionContext
type HttpActionContext = class end
public class HttpActionContext
The HttpActionContext type exposes the following members.
Constructors
Name | Description | |
---|---|---|
![]() |
HttpActionContext() | Initializes a new instance of the HttpActionContext class. |
![]() |
HttpActionContext(HttpControllerContext, HttpActionDescriptor) | Initializes a new instance of the HttpActionContext class. |
Top
Properties
Name | Description | |
---|---|---|
![]() |
ActionArguments | Gets a list of action arguments. |
![]() |
ActionDescriptor | Gets or sets the action descriptor for the action context. |
![]() |
ControllerContext | Gets or sets the controller context. |
![]() |
ModelState | Gets the model state dictionary for the context. |
![]() |
Request | Gets the request message for the action context. |
![]() |
Response | Gets or sets the response message for the action context. |
Top
Methods
Name | Description | |
---|---|---|
![]() |
Equals | (Inherited from Object.) |
![]() |
Finalize | (Inherited from Object.) |
![]() |
GetHashCode | (Inherited from Object.) |
![]() |
GetType | (Inherited from Object.) |
![]() |
MemberwiseClone | (Inherited from Object.) |
![]() |
ToString | (Inherited from Object.) |
Top
Extension Methods
Name | Description | |
---|---|---|
![]() |
Bind(ModelBindingContext) | Overloaded. Binds the model to a value by using the specified controller context and binding context. (Defined by HttpActionContextExtensions.) |
![]() |
Bind(ModelBindingContext, IEnumerable<IModelBinder>) | Overloaded. Binds the model to a value by using the specified controller context, binding context, and model binders. (Defined by HttpActionContextExtensions.) |
![]() |
GetMetadataProvider | Retrieves the ModelMetadataProvider instance for a given HttpActionContext. (Defined by HttpActionContextExtensions.) |
![]() |
GetValidatorProviders | Retrieves the collection of registered ModelValidatorProvider instances. (Defined by HttpActionContextExtensions.) |
![]() |
GetValidators | Retrieves the collection of registered ModelValidator instances. (Defined by HttpActionContextExtensions.) |
![]() |
TryBindStrongModel<TModel> | Binds the model to the property by using the specified execution context and binding context. (Defined by HttpActionContextExtensions.) |
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.