Table of Contents

Interface IModelBinder

Namespace
System.Web.Mvc
Assembly
System.Web.Mvc.dll

Defines the methods that are required for a model binder.

public interface IModelBinder

Methods

BindModel(ControllerContext, ModelBindingContext)

Binds the model to a value by using the specified controller context and binding context.

object BindModel(ControllerContext controllerContext, ModelBindingContext bindingContext)

Parameters

controllerContext ControllerContext

The controller context.

bindingContext ModelBindingContext

The binding context.

Returns

object

The bound value.