HttpActionContextExtensions Class

Contains extension methods for HttpActionContext.

Inheritance Hierarchy


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


<ExtensionAttribute> _
Public NotInheritable Class HttpActionContextExtensions
public static class HttpActionContextExtensions
public ref class HttpActionContextExtensions abstract sealed
type HttpActionContextExtensions =  class end
public final class HttpActionContextExtensions

The HttpActionContextExtensions type exposes the following members.


  Name Description
Public methodStatic member Bind(HttpActionContext, ModelBindingContext) Binds the model to a value by using the specified controller context and binding context.
Public methodStatic member Bind(HttpActionContext, ModelBindingContext, IEnumerable<IModelBinder>) Binds the model to a value by using the specified controller context, binding context, and model binders.
Public methodStatic member GetMetadataProvider Retrieves the ModelMetadataProvider instance for a given HttpActionContext.
Public methodStatic member GetValidatorProviders Retrieves the collection of registered ModelValidatorProvider instances.
Public methodStatic member GetValidators Retrieves the collection of registered ModelValidator instances.
Public methodStatic member TryBindStrongModel<TModel> Binds the model to the property by using the specified execution context and binding context.


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