Table of Contents

Class TypeMatchModelBinder

Namespace
System.Web.Http.ModelBinding.Binders
Assembly
System.Web.Http.dll

Maps a browser request to a data object. This class is used when model binding does not require type conversion.

public sealed class TypeMatchModelBinder : IModelBinder
Inheritance
TypeMatchModelBinder
Implements
Inherited Members

Constructors

TypeMatchModelBinder()

Initializes a new instance of the TypeMatchModelBinder class.

public TypeMatchModelBinder()

Methods

BindModel(HttpActionContext, ModelBindingContext)

Binds the model by using the specified execution context and binding context.

public bool BindModel(HttpActionContext actionContext, ModelBindingContext bindingContext)

Parameters

actionContext HttpActionContext

The action context.

bindingContext ModelBindingContext

The binding context.

Returns

bool

true if model binding is successful; otherwise, false.