Table of Contents

Class KeyValuePairModelBinderProvider

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

Provides a model binder for a collection of key/value pairs.

public sealed class KeyValuePairModelBinderProvider : ModelBinderProvider
Inheritance
KeyValuePairModelBinderProvider
Inherited Members

Constructors

KeyValuePairModelBinderProvider()

Initializes a new instance of the KeyValuePairModelBinderProvider class.

public KeyValuePairModelBinderProvider()

Methods

GetBinder(HttpConfiguration, Type)

Retrieves the associated model binder.

public override IModelBinder GetBinder(HttpConfiguration configuration, Type modelType)

Parameters

configuration HttpConfiguration

The configuration.

modelType Type

The type of model.

Returns

IModelBinder

The associated model binder.