Table of Contents

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 HttpActionContext

The action context.

bindingContext ModelBindingContext

The binding context.

Returns

bool

The bound value.