HttpActionContext Class

 

Contains information for the executing action.

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

Inheritance Hierarchy

System.Object
  System.Web.Http.Controllers.HttpActionContext

Syntax

public class HttpActionContext
public ref class HttpActionContext 
type HttpActionContext = class end
Public Class HttpActionContext

Constructors

Name Description
System_CAPS_pubmethod HttpActionContext()

Initializes a new instance of the HttpActionContext class.

System_CAPS_pubmethod HttpActionContext(HttpControllerContext, HttpActionDescriptor)

Initializes a new instance of the HttpActionContext class.

Properties

Name Description
System_CAPS_pubproperty ActionArguments

Gets a list of action arguments.

System_CAPS_pubproperty ActionDescriptor

Gets or sets the action descriptor for the action context.

System_CAPS_pubproperty ControllerContext

Gets or sets the controller context.

System_CAPS_pubproperty ModelState

Gets the model state dictionary for the context.

System_CAPS_pubproperty Request

Gets the request message for the action context.

System_CAPS_pubproperty RequestContext

Gets the current request context.

System_CAPS_pubproperty Response

Gets or sets the response message for the action context.

Methods

Name Description
System_CAPS_pubmethod Equals(Object)

(Inherited from Object.)

System_CAPS_protmethod Finalize()

(Inherited from Object.)

System_CAPS_pubmethod GetHashCode()

(Inherited from Object.)

System_CAPS_pubmethod GetType()

(Inherited from Object.)

System_CAPS_protmethod MemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethod ToString()

(Inherited from Object.)

Extension Methods

Name Description
System_CAPS_pubmethod Bind(ModelBindingContext)

Overloaded. (Defined by HttpActionContextExtensions.)

System_CAPS_pubmethod Bind(ModelBindingContext, IEnumerable<IModelBinder>)

Overloaded. (Defined by HttpActionContextExtensions.)

System_CAPS_pubmethod GetMetadataProvider()

(Defined by HttpActionContextExtensions.)

System_CAPS_pubmethod GetValidatorProviders()

(Defined by HttpActionContextExtensions.)

System_CAPS_pubmethod GetValidators(ModelMetadata)

(Defined by HttpActionContextExtensions.)

System_CAPS_pubmethod TryBindStrongModel<TModel>(ModelBindingContext, String, ModelMetadataProvider, TModel)

(Defined by HttpActionContextExtensions.)

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

System.Web.Http.Controllers Namespace

Return to top