Table of Contents

Class ModelBinderProvider

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

Provides an abstract base class for model binder providers.

public abstract class ModelBinderProvider
Inheritance
ModelBinderProvider
Derived
Inherited Members

Constructors

ModelBinderProvider()

Initializes a new instance of the ModelBinderProvider class.

protected ModelBinderProvider()

Methods

GetBinder(HttpConfiguration, Type)

Finds a binder for the given type.

public abstract IModelBinder GetBinder(HttpConfiguration configuration, Type modelType)

Parameters

configuration HttpConfiguration

A configuration object.

modelType Type

The type of the model to bind against.

Returns

IModelBinder

A binder, which can attempt to bind this type. Or null if the binder knows statically that it will never be able to bind the type.