Interface IModelBinder
- Namespace
- System.Web.Http.ModelBinding
- Assembly
- System.Web.Http.dll
Defines the methods that are required for a model binder.
public interface IModelBinder
Methods
BindModel(HttpActionContext, ModelBindingContext)
Binds the model to a value by using the specified controller context and binding context.
bool BindModel(HttpActionContext actionContext, ModelBindingContext bindingContext)
Parameters
actionContext
HttpActionContextThe action context.
bindingContext
ModelBindingContextThe binding context.
Returns
- bool
The bound value.