This topic has not yet been rated - Rate this topic

HttpActionContext Class

Contains information for the executing action.

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

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

The HttpActionContext type exposes the following members.

  NameDescription
Public methodHttpActionContext() Initializes a new instance of the HttpActionContext class.
Public methodHttpActionContext(HttpControllerContext, HttpActionDescriptor)Initializes a new instance of the HttpActionContext class.
Top
  NameDescription
Public propertyActionArgumentsGets a list of action arguments.
Public propertyActionDescriptorGets or sets the action descriptor for the action context.
Public propertyControllerContextGets or sets the controller context.
Public propertyModelStateGets the model state dictionary for the context.
Public propertyRequestGets the request message for the action context.
Public propertyResponseGets or sets the response message for the action context.
Top
  NameDescription
Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Protected methodMemberwiseClone (Inherited from Object.)
Public methodToString (Inherited from Object.)
Top
  NameDescription
Public Extension MethodBind(ModelBindingContext)Overloaded. Binds the model to a value by using the specified controller context and binding context. (Defined by HttpActionContextExtensions.)
Public Extension MethodBind(ModelBindingContext, IEnumerable(IModelBinder))Overloaded. Binds the model to a value by using the specified controller context, binding context, and model binders. (Defined by HttpActionContextExtensions.)
Public Extension MethodGetMetadataProviderRetrieves the ModelMetadataProvider instance for a given HttpActionContext. (Defined by HttpActionContextExtensions.)
Public Extension MethodGetValidatorProvidersRetrieves the collection of registered ModelValidatorProvider instances. (Defined by HttpActionContextExtensions.)
Public Extension MethodGetValidatorsRetrieves the collection of registered ModelValidator instances. (Defined by HttpActionContextExtensions.)
Public Extension MethodTryBindStrongModel(TModel)Binds the model to the property by using the specified execution context and binding context. (Defined by HttpActionContextExtensions.)
Top
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Did you find this helpful?
(1500 characters remaining)
© 2013 Microsoft. All rights reserved.